How to hide date picker on button click
#ui-datepicker-div is parent div in which calendar is shown
<input type="button" id="edit-field-date-value-value-datepicker-popup-1" value="close" onclick="return dtPickerClose()" />
function dtPickerClose(){
jQuery('#ui-datepicker-div').hide();
jQuery("#edit-field-date-value-value-datepicker-popup-1").attr("class","");
}
this also work in drupal
#ui-datepicker-div is parent div in which calendar is shown
<input type="button" id="edit-field-date-value-value-datepicker-popup-1" value="close" onclick="return dtPickerClose()" />
function dtPickerClose(){
jQuery('#ui-datepicker-div').hide();
jQuery("#edit-field-date-value-value-datepicker-popup-1").attr("class","");
}
this also work in drupal
0 comments: