fires when the user clicks the Today or Clear buttons
date | Date | the selected date (for the Today button) or NULL (for the Clear button) |
myCalendar.attachEvent("onButtonClick", function(date){
if (date == null) {
// clear button
} else {
// today button
}
// hide calendar if needed
this.hide();
});
added in 4.6.1
Back to top