[wd_asp elements=’search’ ratio=’100%’ id=1]

Datepicker settings

6th August 2013

Jquery Misc

jquery icon

ADD

1. Datepicker.css in CSS folder
2. Add

3. Add Jquery call
4. Add UI Call
5. Add the class “datepicker” to the field.

This is for default of 1973, 01, 01
and show a year range of 1920 – 2013

This is default for today

This is from 30 days in advance of today

To make it read only


Dynamic year range
$("#restricting").datepicker({
yearRange: "-20:+0", // this is the option you're looking for
showOn: "both",
buttonImage: "templates/images/calendar.gif",
buttonImageOnly: true
});

Disable the navigation button prev and next in datepicker (css)