Lets say I have 3 form elements.  For one reason or another (probably a
business rule), I can't allow the Tab key to move from the first to the
second element, but the second element MUST be enabled.  And, we MUST allow
the tab key to be used for navigating between the form elements (as well as
mouse clicks).  So, hitting tab when the First element has focus would move
focus to the third element.

Does anyone know how to programmatically skip over a control like this with
JavaScript?  I'm reasonably confident I can intercept the Tab Key
(event.keycode = 9), but not sure what the next step would be.

I've considered looping through all the form elements and inspecting the
TabIndex property to determine which control should receive focus, but I
think that's a little sloppy.  Is there a better way?

Thanks in advance.

Shawn Grover

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to