I am using jQuery Timepicker.
I have two input fields - for taking time.
<input id="startTime" size="30" type="text" />
<input id="endTime" size="30" type="text" />
I am using Jquery UI timer as per documentation
$('#startTime').timepicker({
'minTime': '6:00am',
'maxTime': '11:30pm',
'onSelect': function() {
}
});
$('#endTime').timepicker({
'minTime': '2:00pm',
'maxTime': '11:30pm',
'showDuration': true
});
I want when the first timer is selected, the "minTime" parameter for the second is changed. Basically I try to collect the start time and end time of a certain activity. And I want the second input field to display the parameters from the value of the first input field (the very beginning).
source
share