jQuery-EasyTabs
jQuery-EasyTabs copied to clipboard
nav element for ul
I'd like to enclose the navigation ul in a nav element, but if I do that, the script breaks. Is there a way to get it to work? thanks
What are you trying? It should work. There is an example here, http://os.alfajango.com/easytabs/#nondiv-tab1 and the blog write up here. http://www.alfajango.com/blog/jquery-easytabs-v2-3-released-ajax-tabs-and-more/#/non-standard
I can't get it to. As I say, just standard markup with a nav enclosing the ul with the links.
The error on Firebug console with a nav wrapping the ul is: The specified default tab ('li:first-child') could not be found in the tab set ('> ul > li') out of 0 tabs.
When you created the tabs did you tell it where the tabs are using the tabs option? It's hard to just guess at what you are doing. Here is a quickly bashed together example.
http://www.ipreferpi.eu/test/easytab/nav-tab.html
The nav is just wrapping the ul actually and not the tab divs (it is a navigation item after all...). But specifiying the tabs worked. Sorry, I hadn't realised you needed to do that when you deviate from the standard markup. Thank you.
haha yeah, I didn't realize I did that. I just mashed it together from an old all div tabs example I had. Glad you got it sorted.