I am trying to hide the datepicker when i close the dialog
here is what i used
$("#dialog_edit_calendar").dialog({
close: function () {
$('#edit-calendar-form')[0].reset();
$("#calendardate").datepicker("hide");
}
});
I also tried
$("#calendardate").datepicker("remove");
but it fails !
here is my html
<input class="required" maxlength="10" type="text" data-error-type="inline" name="calendardate"
id="calendardate" onchange="showDaytoSelectedDate1()"/>
here is the example fiddle
my scenario is when i open dialog the datepicker should not open