jQuery API 返回首页目录 | jQuery API 中英文对照版
disableTab(position)

disableTab(position)

Disable a tab, so that clicking it has no effect.

返回值

jQuery

参数

  • position (Number): An integer specifying the position of the tab (no zero-based index) to be disabled. If this parameter is omitted, the first tab will be disabled.

示例

说明:

Disable the second tab of the tab interface contained in <div id="container">.

jQuery 代码:
$('#container').disableTab(2);
相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog