Skip to content Skip to sidebar Skip to footer

How To Catch The DatePicker Close Event

I am using the date picker and it is working fine. Few of my web page need some calculation using the start and end date. I would like to be able to do the calculation when the da

Solution 1:

You are looking for onClose method.

Refer to API Documentation here


Solution 2:

Simple. Just add your function into onClose event. Sample code is below.

.datepicker({
    defaultDate: "+1w",
    changeMonth: true,
    changeYear: true,
    numberOfMonths: 1,
    onClose: function () {
        alert('Datepicker Closed');
    }
});

Post a Comment for "How To Catch The DatePicker Close Event"