I am trying to capture magento's calender date-select event, haven't found anything about any where, but I already know magento is using jQuery UI calender so I looked into jQuery UI documentation and found that onSelect event is on their list using which I can capture the event.
here is the code I had written :
Calendar.setup({
inputField : 'store_date',
ifFormat : '%m/%e/%y',
button : 'store_date_trig',
align : 'Bl',
onSelect: function(dateText,selectedDate) {
console.log(selectedDate);
}
});
event is getting called but the problem is after selecting a date calender doesn't hide with single click but I have do double click on date to hide the calender also textbox (inputField) is not getting updated after date select.
Thanks