I created some custom datepicker using jQuery datepicker, and it works perfect. There is some scenarios when I need some functionality for onSelect event, and want to override it. But I need not to change any other setting from initial datepicker.
here is my code sample:
$('#start_date.datepicker, #end_date.datepicker').attachCustomDatepicker();
$('#start_date.datepicker').datepicker({
onSelect: function(dateValue, inst) {
$('#end_date.datepicker').datepicker("option", "minDate", dateValue);
}
});
As this is not possible, I think out workaround:
will pass function as param to custom jQuery function. This is code for creating datepickers:
and this is preview of my custom function: