Response title
This is preview!




Allows you to define your own event when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters.
thisrefers to the associated input field.Code examples
- Supply a callback function to handle the
onSelectevent as an init option.$('.selector').datepicker({
onSelect: function(dateText, inst) { ... }
});
© 2012 jQuery Foundation
Sponsored by
and others.
