The following html code includes a part used to enter time and is validated calling the relevant function using onblur() but when the javascript function fires the text box containing the time jumps to the left corner! how can i stop this?
<td height="50" rowspan="2">
<span class="headingbox">Expected Time            </span>
<span style="width:100%;text-align:center;">
<input type="time" id=time autofocus name=DPTime onblur="return test()" onfocusout="hid('timeerror2');" onfocus="show('timeerror2');" min="09:00:00" max="22:00:00" />
<span class="poperror" id="timeerror2"> Pharmacy is opened from 9AM to 10PM </span>
</td>
</tr>
<tr>
<td></td>
<td><br> <label id=check align=right></label></td>
</tr>
Here when the test() function is called a relevant value is displayed in the label with id=check! At that point the time box jups to the left side! how to prevent this?