jQuery-EasyTabs icon indicating copy to clipboard operation
jQuery-EasyTabs copied to clipboard

nav element for ul

Open beachmat opened this issue 10 years ago • 6 comments

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

beachmat avatar Sep 02 '14 14:09 beachmat

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

CableGuy67 avatar Sep 07 '14 18:09 CableGuy67

I can't get it to. As I say, just standard markup with a nav enclosing the ul with the links.

beachmat avatar Sep 07 '14 19:09 beachmat

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.

beachmat avatar Sep 13 '14 14:09 beachmat

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

CableGuy67 avatar Sep 14 '14 07:09 CableGuy67

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.

beachmat avatar Sep 14 '14 12:09 beachmat

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.

CableGuy67 avatar Sep 14 '14 13:09 CableGuy67