jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
triggerTab(position) |
triggerTab(position)Activate a tab programmatically with the given position (no zero-based index), as if the tab itself were clicked. 返回值jQuery 参数
示例说明:Activate the second tab of the tab interface contained in <div id="container">. jQuery 代码:$('#container').triggerTab(2);说明:Activate the first tab of the tab interface contained in <div id="container">. jQuery 代码:$('#container').triggerTab(1);
说明:Activate the first tab of the tab interface contained in <div id="container">. jQuery 代码:$('#container').triggerTab(); |