Working AJAX call with Datepicker