Click to See Complete Forum and Search --> : Moving from one textinput to the next..


rincewind2
11-11-2003, 04:34 AM
Hi everybody...

If I have multiple text inputs and when one input is full I what it to move directly over to the next one.
How do I do this.

example


<input type="text" name="i1" size="1" maxsize="1">
<input type="text" name="i2" size="1" maxsize="1">
<input type="text" name="i3" size="1" maxsize="1">
<input type="text" name="i4" size="1" maxsize="1">
<input type="text" name="i5" size="1" maxsize="1">

And when I write one character in "i1" i want to directly step over to "i2" and then so on... It should be able to be done in javascripts..=)

Anyone knows how?

Regardz,

MonkeyBoy
11-11-2003, 04:47 AM
There's a working example here:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_autonext