JQuery update datepicker on change code example
Example: datepicker on change
$("#datepicker").on("change",function(){
var selected = $(this).val();
alert(selected);
});
$("#datepicker").on("change",function(){
var selected = $(this).val();
alert(selected);
});