Range #72

Open
shadyonline opened this Issue Apr 28, 2016 · 1 comment

Projects

None yet

2 participants

@shadyonline

How to make value in next timepicker input => previous timepicker?

@wvega
Owner
wvega commented Apr 28, 2016

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);
    });
@wvega wvega added the question label Apr 28, 2016
@wvega wvega added this to the Support milestone Apr 28, 2016
@wvega wvega self-assigned this Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment