How To Set ActiveTab index using Javascript

function setActiveTab(tabNumber)
   {
        var ctrl = $find('<%=TabContainer.ClientID%>');
        ctrl.set_activeTab(ctrl.get_tabs()[tabNumber]);                  
   }

this is a function that sets the active tab using javascript so you just set the anchor’s href to look like this:
<a href='setActiveTab(1)'>Go to Next Tab</a>

Please do not post any spam link in the comment box😊

Post a Comment (0)
Previous Post Next Post