I would like to add a button to a JQuery DatePicker that would give a customized response (that is not a date). My situation is a form asking previous work experience, and I want a Present
button with the DatePicker on the employment_date_end
field.
$("<button>Present</button>").appendTo($('<div class="ui-datepicker-buttonpane ui-widget-content" />').appendTo(".ui-datepicker")).button()
this script adds the button to date picker when shown u can call this script on events like on show event of date picker.To try it just open firebug open datepicker popup and execute the script in firebug console and the button will be added its just a simple fix that i m giving .there are many other ways like extending datePicker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With