I have 2 texbox the first has the start time end the second the user should enter the end time both on this format (00:00:00). How can i prevent the user to enter a value in the second textbox inferior to the fist one, so the endtime must superior to the start time, it he does message should warn him. behold my codes:
<input type="text" name="StartTime" id="StartTime" size="30"
value="<?php echo $tab['StartTime'];?>" readonly="readonly" /></td></tr>
<tr><td>
<label>End Time</label>
</td>
<td>
<input type="text" name="EndTime" id="EndTime" value="00:00:00"
max="23:00" size="30" required pattern="[0-2][0-9]:[0-5][0-9]:
[0-5][0-9]" title="Please enter end time this format
(00:00:00),maximum value is: 23: 59: 59"/></td></tr>
If the start time is for instance 08:00:00 and the user enter 07:00:00 a message should pop up to warn him. Thank you