Hi
I m using jquery ui tabs
I can get the index of the selected tab on "load" (ajax) event
$('#tabs').tabs(
{
load: function(e, ui) {
if($('#tabs').tabs('option','selected') == 0) { }
}
});
Now i want to get the tab name
for eg...
<ul>
<li><a href="newprofile.jsp"><span>Profile</span></a></li>
<li><a href="ashout.jsp" id="friends"><span>Shouts</span></a></li>
</ul>
I want to retrieve the text Profile when first tab is clicked or Shout when second tab is clicked.
Thanks