fires before the user clicks on a date in the calendar
date | Date | clicked date |
myCalendar.attachEvent("onBeforeChange", function(date){
// your code here
return true; // allow selection
});
if the handler function returns false, a user won't be allowed to change the date in the calendar, i.e. the current date will be selected all the time
Back to top