how do i check which tabs is active using jquery tabs?

Bart picture Bart · Oct 29, 2010 · Viewed 16.7k times · Source

how do i check which tabs is active using jquery tabs?

Answer

kbvishnu picture kbvishnu · Oct 29, 2010

Please try with Index

 function getIndex(){
     return $("ul li.ui-state-active").index();
    }

It will returns the index of selected li or tab.