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