Fires after the user selects a date
myCalendar.attachEvent("onClick", function(date){ alert("Date is set to "+date); }); // for double calendar myCalendar.attachEvent("onClick", function(side, date){ // your code here });
Parameters of handler function: