jQuery API jQuery API 中英文对照版 - jQuery在线查询手册
enableTab(position)

enableTab(position)

Enable a tab that has been disabled.

返回值

jQuery

参数

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

示例

说明:

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

jQuery 代码:
$('#container').enableTab(2);