I am using jquery_ui tabs, and my tabs look something like this:
<div id="mytabs">
<ul>
<li class="tab-one"><a href="#onepane">apples</a></li>
<li class="tab-two"><a href="#twopane">berries</a></li>
<li class="tab-three"><a href="#threepane">citrus</a></li>
</ul>
<div id="onepane">green apples, red apples</div>
<div id="twopane">blueberries, raspberries </div>
<div id="threepane"></div>
</div>
My question:
As the tab content changes, I would like to dynamically hide any empty tabs. In the example above, I would like to hide the third tab, "citrus", because its corresponding tab-pane contains no content. Does anyone know how to do this?