-
-
Save clemherreman/3742342 to your computer and use it in GitHub Desktop.
Adding an event handler to an already initialized jQuery UI datepicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds an event handler | |
$('#my_datepickerized_field').datepicker( 'option' , 'onSelect', function (date) { // 'onSelect' here, but could be any datepicker event | |
$(this).change(); // Lauch the "change" evenet of the <input> everytime someone click a new date | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly what i was looking for, thank you!