0

Possible Duplicate:
How can I automatically tab to the next field using jQuery?

Is it possible to simulate the pressing of the tab key with JavaScript?

I would like the focus to be switched to the field with the next highest tabindex, just as actually pressing tab would.

Community
  • 1
  • 1
chc1201
  • 49
  • 1
  • 1
    Can you be more specific about iterating, is that means looping through all elements which has a `tabindex` ? – The Alpha Aug 31 '12 at 22:35
  • @chc1201 I rephrased the question, if this is not what you meant please clarify. – Adam Aug 31 '12 at 22:59
  • @Adam, I think,you have just changed the whole meaning of the original question, may be not a good idea. – The Alpha Aug 31 '12 at 23:04
  • @SheikhHeera I don't think I did, the OP specifically mentioned that he was trying to "simulate a tab press". Continually pressing tab would iterate through all the fields on the page as the OP described. – Adam Aug 31 '12 at 23:11
  • Might not be an exact duplicate of the other questions. Since I don't see any that use tabindex. – Adam Aug 31 '12 at 23:21

0 Answers0