Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Is it possible to have 2 levels of tabs? #17
In one of our projects we need 2 levels of tabs. In order to test this we adapted the code sample to have a 2nd level of tabs in the "#id_first" tab. However, after the fourth tab, when moving right, the 5th one is opened (seems logique, but the 5th one is in fact a subtab of the first one). So the 5th tab should only open after we enter in the content tab of #id_first. Is there a workaround?
yes it is possible, in fact, I made the choice to have "cool" selectors like
However if you want to have nested tabs, it can create problems, like the one you encountered. :-\
I've made a quick test with stricter selectors like
If it is okay for you, I will probably upload this file and explain the workaround. Anyway, at the next refactoring, I will probably set it up as an option.
Could you confirm it works now?
updates are committed, see https://github.com/nico3333fr/jquery-accessible-tabs-aria/blob/master/jquery-accessible-nested-tabs.js ;)
Thanks a lot.