Search code examples
javascriptjqueryjquery-uijquery-selectorsjquery-ui-tabs

Jquery ui how to selects tabs those are enable?


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


Solution

  • $('.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/