...

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



inlandti
10-29-2004, 07: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

liorean
10-31-2004, 03: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum