如何使用jQuery禁用选项卡 [英] how to disable the tabs using jquery
本文介绍了如何使用jQuery禁用选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在主选项卡下有三个子选项卡,当我默认单击主选项卡时,我正在使用jquery网格显示tab1数据,现在最初需要禁用tab2和tab3。
I have three subtabs under main tab, when I click main tab defauly I am displyaing tab1 data using jquery grid, now initially I need disable the tab2 and tab3. how?
推荐答案
从jQuery UI选项卡文档。请注意,它是从零开始的,因此将禁用第二个和第三个选项卡。
From the jQuery UI tabs documentation. Note that it's zero-based so this disables the 2nd and 3rd tabs.
$( ".selector" ).tabs( { disabled: [1, 2] } );
这篇关于如何使用jQuery禁用选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文