To get the value selected from jquery datepicker we need to use the jquery datepicker onselect event, onselect event will be having default parameter which returns the selected date. Below example will give you better idea how to do that.

In this post we will discuss how to use XML response for JQuery UI autocomplete extender. To make jquery ui autocomplete extender work with xml, after getting the xml resultset we have to convert it to Array.

In the above code url we have mentioned as "default.aspx/LoadCountry" where default.aspx is page name and LoadCountry is the web method name which returns the XML result set (we are writing for each loop on the xml and adding the countries in the xml to array variable myArr).

Data we have given as -> data: "{input:'" + request.term + "'}". Where input is the parameter name in the C# web method. and request.term will pass the value we entered in the textbox.

And if the ajax method successfully executed then it will call the success method if any error is there then error method will be raised in the above code.

To declare web method LoadCountry, we have to specify the access specifier as public and static. and add [WebMethod] attribute.In the above code GetCountries() method used to prepare the sample data, you can replace this with the original data.

Now execute the solution to get the output as shown in the above image....

In this example we will see how to disable the previous date selection in JQuery UI date picker. To disable the previous dates we need to set the minDate property of date picker. if we set minDate:0 then it will disable all the previous dates.