Check documentation for the latest version of dhtmlxSuite onBeforeChange DHTMLX Docs

onBeforeChange

fires before the user clicks on a date in the calendar

void onBeforeChange(Date date){ ... };

Parameters

dateDateclicked date

Example

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

Details

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