I am using jquery\'s datepicker where a list of items is populated from an ajax call whenever a date is picked from an inline datepicker object. The script works perfect exc
This is how I got round the same problem. Simply register an event with the code you want to call, then call that event from the onSelect method inside datepicker and then call that same event any other time you want.
$(document).ready(function(){
// Onselect event registration
$("#date_calendar").bind("datepickeronSelect", function(){
alert("onSelect called!");
})
//create date pickers
$("#date_calendar").datepicker(
{
changeMonth: true,
changeYear: true,
dateFormat: 'yy-mm-dd',
defaultDate: $.datepicker.parseDate("y-m-d", $('#date').val()),
onSelect: function(dateText, inst)
{
$("#date_calendar").trigger("datepickeronSelect");
}
}).disableSelection().trigger("datepickeronSelect");
});