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.

5
  • 1
    Can you be more specific about iterating, is that means looping through all elements which has a tabindex ? Commented Aug 31, 2012 at 22:35
  • @chc1201 I rephrased the question, if this is not what you meant please clarify. Commented Aug 31, 2012 at 22:59
  • @Adam, I think,you have just changed the whole meaning of the original question, may be not a good idea. Commented Aug 31, 2012 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. Commented Aug 31, 2012 at 23:11
  • Might not be an exact duplicate of the other questions. Since I don't see any that use tabindex. Commented Aug 31, 2012 at 23:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.