-
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
Date Range #14
Comments
You have to destroy the picker first. I think we should fix for workaround try this $("#toDate").data().HijriDatePicker.destroy();
$('#toDate').removeData('HijriDatePicker');
// then reinitialize date picker
$('#toDate').hijriDatePicker({ minDate: date.format("YYYY/M/D") }); |
it is working just for once , from the next click getting this issue Here is the code . $("#DateFrom").on('dp.change', function (event) {
|
when I set a date to input "fromDate". how to set "minDate" to input "toDate". I tried but "minDate" not applied!
$("#fromDate").on('dp.change', function (data) {
let date = data.date;
$('#toDate').hijriDatePicker({ minDate: date.format("YYYY/M/D") });
});
The text was updated successfully, but these errors were encountered: