Access Asp.net control from client side javascript
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have been trying to change the active tab of a Asp.Net AJAX toolkit tab container all day and I haven't been able to do it. I am new to both asp.net and javascript. I have done a couple of searches but nothing. Here is the javascript that I am calling from my asp.net button OnClientClick handler. OnClientClick="return SwitchTab('TabContainer1');" function SwitchTab(TabID) { var MyTab = document.getElementById(TabID); // MyTab.style.display = "none"; //this line worked MyTab.setAttribute('ActiveTabIndex','0'); return false; } How can I access the active tab attribute? Thanks Ali
AliR. Visual C++ MVP