trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Can't change values once initialized #901

Open abhijeetahuja opened 7 years ago

abhijeetahuja commented 7 years ago

I have to change stepInterval, minDate, hourMax dynamically, but not able to override the initial values.

I have tried

$('#time').datetimepicker("option", "stepMinute", 30 ); $('#time').datetimepicker("option", "hourMax", 18 );

and also tried re-initializing this:

$('#time').datetimepicker({ timeFormat: "hh:mm tt", dateFormat: 'dd M yy', stepMinute: 30, hourMax: 17, minDate: new Date() });