jQuery UI Tabs: How to get the current number of tabs
Posted: 11/10/2010 2:19:42 PM
By: Comfortably Anonymous
Times Read: 1,848
0 Dislikes: 0
Topic: Programming: jQuery/Javascript

Easy answer: Say you have a dynamic jQuery UI tab control with an id='tabs'.

To determine the count of how many tabs are in the control, just use the following to obtain the count:

var tabCount = $('#tabs').tabs('length');

Easy as that... :)

Rating: (You must be logged in to vote)