1
我有一個可行的選項卡的腳本元素:關聯放置了標籤與標籤項目
:點擊「.TAB」項目,ul.tab李項具有一流的‘活性成分’。但隨着點擊
<a class="bdn" href="#tab2">Go to Tab 2</a>
<a class="bdn">
不可能添加class="actives
到標籤的物品。我怎麼可以提前做到這一點與滾動至
<div class="tab_content chart" id="tab2">
this is the content of tab2
</div>
感謝
@DarthJDG,非常感謝,但滾動到#tab2怎麼辦? – utopia 2011-05-29 14:34:18
觸發點擊應該也會自動滾動。 – DarthJDG 2011-05-29 14:42:31
你的意思是'$('ul.tab a [href =「#tab2」]')。trigger('click');' ? – utopia 2011-05-29 14:48:25