Open ghost opened 8 years ago
Hi @shadyonline, this demo restricts the selected entry time in the next time picker to be greater than the value selected in the previous one: http://jsfiddle.net/wvega/A9cE6/embedded/.
This is the part of the code I think you are interested in:
$('#tp1')
.timepicker('setTime', '11:40a')
.timepicker('option', 'change', function(time) {
// update startTime option in timepicker-2
$('#tp2').timepicker('option', 'minTime', time);
});
How to make value in next timepicker input => previous timepicker?