Below is the Current JQuery for My Time Pickers.
If time is picked from #from field it set max time of #to to selected time.
If I picked 1am from #from the max time that can be pick up on #to is 1am.
var osmaxtime = '20';
$('#from').timepicker({ 'minTime': '9','maxTime': '8','scrollDefaultNow': true,'step': 60 });
$('#from').on('changeTime', function() {
var sFrom=$(this).val();
$('#to').timepicker({ 'minTime': '9','maxTime':sFrom,'scrollDefaultNow': true,'step': 60 });
});
$('#to').timepicker({ 'minTime': '9','maxTime': osmaxtime,'scrollDefaultNow': true,'step': 60 });
Now I want to increase the max time for #to Field according to #from field.
e.g., if I pick up 1am from #from the max time for #to is 4am (+4 Hours)
$('#from').on('changeTime', function() {
var sFrom=$(this).val();
var sFromPuls=sFrom+4;// Here is the problem because the value of sFrom is in String or something else.
$('#to').timepicker({ 'minTime': '9','maxTime':sFrom,'scrollDefaultNow': true,'step': 60 });
});
My Problem was solved by following code -