The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Relative Tab Indexing

  • # March 10, 2013 at 11:25 am

    I’m using tab indexes on my navigation to allow users to tab through that content. The problem I am having is the third and fourth ( out of six ) open a modal. Once that modal is open The user must tab through the rest of the navigation to get to the fields in the modal. I would like to have the modal’s forms/elements capture all the tabbing before returning to navigation if not stop it from moving back to the nav elements until the modal is closed. Is there a simple way to force the next tab to jump to the first field on the modal with out using javascript? It seems really simple but I think some how I’m missing something.

    Thanks in advance.


    Here is a small non-working example of what I am trying to do:

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed