setActive

selects the specified tab

void setActive();

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
myTabbar.addTab("a1", "Rage");
myTabbar.addTab("a2", "Motorhead");
myTabbar.addTab("a3", "Poisonblack");
 
// select tab
myTabbar.tabs("a1").setActive();

Details

a disabled tab can also be selected

Change log

added in version 4.0

Back to top