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?
Jump to Post
Sure, just add the "tabindex" parameter to every form field you want the tab key to traverse. For example.
<input type="text" tabindex="0">
Each form field should increment the tabindex (0, 1, 2, ...) in the order you want the tab key to proceed. For elements you don't …
All 2 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.