Created
January 8, 2020 17:16
-
-
Save greentornado/a40114bfa3baf3fb6825f92c7b4e699f to your computer and use it in GitHub Desktop.
demo.js
This file contains 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
document.addEventListener("DOMContentLoaded", () => { | |
$(function(){ | |
var datepicker = $('#result_calendar').datepicker().data('datepicker'); | |
datepicker.update('onSelect', function(formattedDate, date, inst){ | |
console.log(formattedDate); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment