I currently am creating a date picker like so
HTML
Here is a possible solution:https://jsfiddle.net/7atsua85/
Instead of e.target.value, use $(this).val() as shown below,
$('#datepicker').datepicker()
.on("change", function (e) {
//console.log("Date changed: ", e.target.value);
alert($(this).val())
});
Use jquery on input alongside with the on change
event
$('#datepicker').datepicker()
.on("input change", function (e) {
console.log("Date changed: ", e.target.value);
});
Fiddle