Hi All,
>From an event handler attached to a control that has a tab index, is it
possible to find the next control in the tab order - and then focus()
on it?
I am having a bit of trouble with running my own (onkeyup) code in
response to a tab and then making sure that the tab-effect still occurs
i.e. focus on the next control in the tab order isn't happening even
though I return true from the function.
Rob
:)
|
|
0
|
|
|
|
Reply
|
relaxedrob (38)
|
10/27/2005 12:17:41 AM |
|
> possible to find the next control in the tab order - and then focus()
> on it?
The easiest way I can think of is:
1. Use the taborder attribute
2. Get the taborder for the focused item
3. Use the getElementsBySelectors script
http://simon.incutio.com/js/getElementsBySelector.html
4.
document.getElementsBySelector('input[taborder=<NEXTTABNUMBER>]')[0].focus();
|
|
0
|
|
|
|
Reply
|
Joshie
|
10/27/2005 8:31:33 AM
|
|