Open xpavp03 opened 9 years ago
same problem. how to set minTime?
Same issue. Oh..
Quick hack is to destroy and create datetimepicker on each option update.
I can't set minTime or maxTime. I am using DateTimePicker with datepicker set to "false". Any help?
How to destroy the timepicker and call it again ?
If I didn't forget something, it should work like this (example with datetimepicker):
// your input jQuery object
var cdt = $('input[name=DateTime]');
// create datetimepicker
cdt.datetimepicker({
//your params
});
// destroy it
cdt.datetimepicker('destroy');
// create datetimepicker for a second time
cdt.datetimepicker({
//your params
});
Minimum hour will still be 15, even after the second call to minTime. Tested with the current dev version from Github.
No problem when using minDateTime: