views:

22

answers:

1

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.

+1  A: 

Did a hacky solution. I removed <ul id="filter-controls"> and inserted it back after calling tabs()

Shiki