用jquery idTabs,如何才能做到手动跳转,下面tab3里做个按钮可跳转到tab1里?
<divid="usual1"class="usual"><ul><li><aclass="selected"href="#tab1">Tab1</a></li><li>...
<div id="usual1" class="usual">
<ul>
<li><a class="selected" href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1">This is tab 1.</div>
<div id="tab2">More content in tab 2.</div>
<div id="tab3">按这里能回到tab1</div>
</div>
<script type="text/javascript">
$("#usual1 ul").idTabs();
</script> 展开
<ul>
<li><a class="selected" href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1">This is tab 1.</div>
<div id="tab2">More content in tab 2.</div>
<div id="tab3">按这里能回到tab1</div>
</div>
<script type="text/javascript">
$("#usual1 ul").idTabs();
</script> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询