Check documentation for the latest version of dhtmlxSuite onBeforeChange DHTMLX Docs

onBeforeChange

fires before the user clicks on a date in one of the calendar instances

void onBeforeChange(string side,Date date);
sidestring"left" or "right"
dateDateclicked date

Example

myCalendar.attachEvent("onBeforeChange",function(side, date){
    // your code here
    return true; // allow selection
});

Back to top