Created
June 29, 2020 00:18
-
-
Save bstonedev/b5020e35a8d4800023cf09069ce7e0d5 to your computer and use it in GitHub Desktop.
jquery datepicker: how to fire an event when a date is selected
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
$('.selector').datepicker({ | |
onSelect: function(dateText, inst) { | |
console.log(dateText + " has been selected!"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment