How to retrieve all tab names or labels without selecting tab in jQuery?
I need this to validate tab name/label length.
How to retrieve all tab names or labels without selecting tab in jQuery?
I need this to validate tab name/label length.
If you're using jquery tabs then
$('.ui-tabs-nav li')
should give you all the tab list elements.
$('label')
should give you all the lables on the page.
Sorry. I was not very clear. I am refering to jquery tabs.
Here is my html
"<div id="tabs">
<ui>
<li><a href="pointInfo.html">Point Info</a></li>
<li><a href="pointAnalysis.html">Point Analysis</a></li>
</ui>
</div>"
Programatically in javascript, I want array of Tab Labels. So in this case, Array[0] ="Point Info"; Array[1]="Point Analysis";
$('label') in above answer just gives me a object. Please explain how to retrieve labels from this object.