The ID of tabbar can be used as js reference for tabbar initialization.
<div id=“a_tabbar” class=“dhtmlxTabBar” …
a_tabbar.setTabActive(“b4”);
But the decting of the moment when tabbar already initialized can be problematic, the latest version of tabbar ( not release yet ) support the special onInit event for such purpose
<div onInit=“custom_tab()” id=“a_tabbar” class=“dhtmlxTabBar” …
function custom_tab(){
a_tabbar.setTabActive(“b4”);
To get onInit method - please use attached js file instead of original one.
also , if you need only to select tab after init you can use “select” attribute
<div onInit=“custom_tab()” select=“b4” id=“a_tabbar” class=“dhtmlxTabBar” …
dhtmlXTabBar_start.zip (850 Bytes)