Check documentation for the latest version of dhtmlxSuite getActiveTab DHTMLX Docs

getActiveTab

returns id of the active tab

string|number getActiveTab();
string|numberthe tab's id or null if tab not selected

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
// get active tab
var actvId = myTabbar.getActiveTab();

Back to top