how to setfocus back to text box after clciking reset button
hi everyone
my problem is:
i have an text box .after entring the value in this user press calculate button .
then there is reset button .where he can reset the value.\
the problem i am getting is after clicking reset button cursor focus is not going back to textbox
how to do that
pleasehelp code is below
funtion clear()
{
document.form1.T2.value="";
document.getElementById("quant").focus();
}
<input type="text" name="T2" size="12" id="quant">
<input type="reset" value="Reset" name="B4" onclick="return clear();">

