Created
January 8, 2020 17:16
-
-
Save greentornado/c4c552d7c71d123ba0522fb319262ffe 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