Hi Could anyone help me plz.
I have a form in which 2 textbox, 1 check box and 1 reset button.
Now when i write something in the textbox 1 and click out side the textbox it automatically check my checkbox and after that when i click on the reset button then reset the form. Till this its working perfectly.
But now the main issue is this after write in textbox1 and checkbox is check then it must move the cursor focus to the 2 textbox. which it is not doing. I also used focus function but it is not working.
<script language=”javascript”>
function msgalert()
{
document.f1.cb1.checked=true;
document.f1.t2.focus();
}
</script>
<body> <br>
<form name=”f1″>
Name: <input type=”text” name=”t1″ onChange=”msgalert()”>
Check box:<input type=”checkbox” name=”cb1″>
<input type=”reset” name=”reset” value=”reset”><br>
<input type=”text” name=”t2″>
</form>
</body>