0
我可以用下面的代码遍历所有标签遍历jQuery中启用标签
$('#tabs .ui-tabs-nav a').each(function() {
var id = $(this).attr('href');
}
(的https://forum.jquery.com/topic/how-to-iterate-through-tabs提供)
我可以检查,看是否有标签,通过使用其指数已启用下面的代码
function isDisabled(index) {
return $.inArray(index, $("#tabs").tabs("option", "disabled")) > -1;
}
(从How to know if a tab is enabled on jQuery tabs?尼克Craver提供)
如何遍历所有启用的选项卡?
太棒了!谢谢 – gordon613