Jquery ui how to selects tabs those are enable?

72 Views Asked by At

If there are more than one tab(jquery ui tab) some of them are disable and some enable. How to get all enable tabs?

3

There are 3 best solutions below

0
On BEST ANSWER
$('.ui-state-disabled') will give you all the disabled tabs. 

It is the class added to the diabled tabs

and similarly $('.ui-state-default:not(.ui-state-disabled)') will give the enabled tabs.

Demo: http://jsfiddle.net/GCu2D/424/

0
On

you just need to use enable function

$( ".selector" ).tabs( "enable" );
0
On
$('.ui-state-default:not(.ui-state-disabled)')