Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatic tabbing between fields

Status
Not open for further replies.

dude333

Programmer
Feb 5, 2004
11
GB
Hi,

Does anyone know if it is possible to automatically tab between fields after a valdid input has been entered.

ie if an input field will take a 2 figure number, such as 02, and someone enters that, is it possible to automatically shift the focus on to the next field?

Thanks
 
Yeah, easy... Use the onkeydown event handler to run the validation routine. If the validation passes, use the .focus() method of the next object to automatically change the focus.

[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]

AU.gif
Check out Tek-Tips Australia New Zealand forum1155
NZ.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top