Hello all. On my form i have my phone number field broken into 3 text boxes.
1- area code = txtArea
2- first 3 digits = txtPhone1
3- last 4 digits = txtPhone2
how do i from on text box after the user is filling the area code field our when the length is = 3 to automatically set the focus to the next text box. I wrote this a long time ago and only used it once. Tell me what I am doing wrong:
<input type="text" name="txtArea" onkeypress="if(this.length ==3){document.frmName.txtPhone1.focus()}">
Thanks,
Frandazzo
1- area code = txtArea
2- first 3 digits = txtPhone1
3- last 4 digits = txtPhone2
how do i from on text box after the user is filling the area code field our when the length is = 3 to automatically set the focus to the next text box. I wrote this a long time ago and only used it once. Tell me what I am doing wrong:
<input type="text" name="txtArea" onkeypress="if(this.length ==3){document.frmName.txtPhone1.focus()}">
Thanks,
Frandazzo