-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide and Show hijriDatePicker() and show text based on condition #10
Comments
Hello, can you clearfiy what you are going to achieve ? the picker data name is $(element).removeData('HijriDatePicker'); if you want to destroy the datetime picker use the following $("#hijri-date-input").data('HijriDatePicker').destroy(); Hope I get what you want to achieve Thanks |
Yes, same thing want to achieve. but the above code not working.
|
try to call this code alone and see if the datepicker get destoyed or not
Thanks |
Sorry for the late reply. |
Soon, we will improve the docs and list all features. Hope you will find what are you looking for Thanks |
Hello,
Normal datepicker support below code to hide datepicker.
$('#datepicker').datepicker("disable")
bootstrap-hijri-datetimepicker.js" lib picker.destroy function available:
picker.destroy = function () {
///
Destroys the widget and removes all attached event listeners
hide();
detachDatePickerElementEvents();
element.removeData('DateTimePicker');
element.removeData('date');
};
$('#datepicker').datepicker("disable") o hide how to implement in hijriDatePicker() in custom js ?
$(function () {
$("#hijri-date-input").hijriDatePicker();
});
The text was updated successfully, but these errors were encountered: