tags:

views:

78

answers:

1

As the title suggest, my question is what is the best way to get or build a list of the titles for the set of tabs. I was thinking I would have to build the list in a for loop, but there does not appear to be any 'name' or 'title' property where you could do something like this:

var $tabs = $('contentContainer').tabs();
$tabs.tabs( 'title', index );
+1  A: 
$('contentContainer ul li a').each(function(){alert($(this).text())})

(assuming the selector is used when creating the tabs is 'contentContainer'... if it's a class or an id it will need a . or a #.)

spender