Here is my HTML code
<div class="form-group">
<label for="labeldate" class="col-sm-1 control-label">Time</label>
<label for="input_fromdate" class="col-sm-2 control-label">From</label>
<div class="col-sm-3">
<input type="time" class="form-control" id="from_time" name="from_time" placeholder="Pick here">
</div>
<label for="input_todate" class="col-sm-1 control-label">To </label>
<div class="col-sm-3">
<input type="time" class="form-control" id="to_time" name="to_time" value="" placeholder="Pick here">
</div>
</div>
I want to make sure that to_time
is always greater than from_time
.
Lets take from_time:05:00 PM and to_time:04:00 PM.
I tried using greater than in jquery but it doesnt work perfectly. I want this to include with my jquery validation code