View Full Version : how do you loop thru multiple text boxes

10-29-2004, 08:27 PM
I have a form with multiple text boxes is there a way to check if text box is filled and automatically go to next one

10-31-2004, 04:35 PM
Yes. Use the onchange event on the input element, with a value something like this:"''==this.value?this.focus():document.forms['idofform'].elements['idornameofnextfield'].focus();"

If you want to do somehting more advanced, replace the ''==this.value part with a validation function call.