Check documentation for the latest version 6.0 of dhtmlxSuite getActiveTab DHTMLX Docs

getActiveTab

returns id of the active tab

string|number getActiveTab();

Returns

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