Tab Control on Hidden Input fields

They have: 2 posts

Joined: Jul 2003

When I have a hidden input field on my webpage and I use the tab key to traverse my fields, the cursor always moves to the hidden input field. This means that I have to press tab twice to move to the next visible field. Is there any way that I can skip the hidden input field when I am using the tab key?
Thanks, B

druagord's picture

He has: 335 posts

Joined: May 2003

weird i never noticed this behavior and i use hidden input quit often. Are you using

  <input type="hidden" ...>
'
or
  <input type="text" style="visibility:hidden;">
'

however in javascript you can do

<input type="hidden" onfocus="document.myform.nextfield.focus()">
'

IF , ELSE , WHILE isn't that what life is all about

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Try putting the hidden fields right at the bottom, as long as they are withing the FORM tags then they will pass.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.