Prevent jQuery Tabs to bind to <ul> elements below the main <ul> element.
- by Shiki
Hi, I have this HTML:
<div id="mytabs">
<ul id="main-tabs">
<li><a href="">Link</a></li>
<li><a href="">Link</a></li>
<li class="filter">
<ul id="filter-controls">
<li><a href="">Filter by something</a></li>
<li><a href="">Filter by something</a></li>
<li><a href="">Filter by something</a></li>
</ul>
</li>
</ul>
</div>
And I set it to a tabbed control:
$('#mytabs').tabs();
My problem is jQuery UI also converts the <li> elements in <ul id="filter-controls"> into tabs. Is there a way to instruct jQuery UI to only set the <li> children of <ul id="main-tabs"> as the tabs?
Note: I am currently in no position to change <ul id="filter-controls" into a non-ul element.