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