Events

Datepicker triggers a number of events in certain circumstances. All events have extra data attached to the event object that is passed to any event handlers

$('.datepicker').datepicker()

.on(picker_event, function(e) {
    // `e` here contains the extra attributes
});

show


Fired when the date picker is displayed.

hide


Fired when the date picker is hidden.

clearDate


Fired when the date is cleared, normally when the “clear” button (enabled with the “clearBtn“ option) is pressed.

changeDate


Fired when the date is changed.

changeMonth


Fired when the view month is changed from year view.

changeYear


Fired when the view year is changed from decade view.

changeDecade


Fired when the view decade is changed from century view.

changeCentury


Fired when the view century is changed from millennium view.