Datepicker onChangeMonthYear

Datepicker onChangeMonthYear


Hi there!
$('#calendar').datepicker({
changeMonth: false ,
changeYear: false ,
onChangeMonthYear: function(year, month, inst) {
$.getJSON("json.js", function(json){
...
});
}
});
I would like to if onChangeMonthYear firing after the new month has
been loaded.
I tried to following lines I read another post but wont worked:
$.datepicker.oldAdjustDate = jQuery.datepicker._adjustDate;
$.datepicker._adjustDate = function(id, offset, period) {
//overriding a datepicker core function
this.oldAdjustDate(id, offset, period); //to ensure that the old
code still runs
this._notifyChange($.datepicker._curInst); //this ensures that the
onChangeMonthYear event is fired correctly
}
Have anybody any idea how can I do that ?
Thomas























    • Topic Participants

    • tamas