setTabActive not working

I have created a tabbar using html structure. I want to set a specific tab active on click of a button.

I have used ‘setOnSelectHandler’ to get the value of the active tab and set it in a variable. On clicking of a button I am calling the setTab(). However I am getting an error : ‘a_tabbar is not defined’ in Firefox and ‘Object does not support this property or method’ in IE.



Below is the code.































Thanks in advance.


The code looks correct


Is a_tabbar a global variable ? Please, provide the complete demo to reproduce the issue