我使用jquery_ui标签,我的标签是这个样子:如何隐藏空标签
<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>
我的问题:
作为标签内容的变化,我想动态地隐藏任何空标签。在上面的示例中,我想隐藏第三个选项卡“柑橘”,因为其相应的选项卡不包含任何内容。有谁知道如何做到这一点?
我看着jquery_ui选项卡文档(http://jqueryui.com/demos/tabs/),并通过stackoverflow和谷歌搜索,但没有找到任何解决我的问题。 – moondog
http://stackoverflow.com/questions/5383755/jquery-ui-tabs-how-can-i-remove-tab-list-item-if-corresponding-content-panel-i –