on change datepicker 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);
});