Alter text field focus order with jQuery

Posted by Akinator on Stack Overflow See other posts from Stack Overflow or by Akinator
Published on 2010-12-23T21:36:01Z Indexed on 2010/12/23 21:55 UTC
Read the original article Hit count: 226

Filed under:
|
|
|
|

Hi,

I was wondering, if I have text fields displayed so, could I alter the order in which the focus using javascript (preferably jQuery).

See this example here.

What I mean that when you tab around them, instead on going "one, two, three, four, five" force them to go: "one, two, four, three, five".

Thanks in advance!!

EDIT: Thanks to all, I didn´t know it was possible with HTML only. Of course if this is the case I´ll go with that.

BTW Thanks to all your answers!!! (I`ll upvote the complete ones) but will accept the first one.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html