asp.net - ActiveTab setting in javascript -


when setting tabcontainer first tab active tab through javascript following code :

var tc = document.getelementbyid('<%= tabcontainer.clientid %>'); tc.firstchild.lastchild.style.visibility = "hidden"; tc.set_activetabindex(0); 

i getting exception like:

propert or method not supported object.

note second line succefully hides second tab panel third line raises excception

any suggestion how set tab active through javascript?

error generated line

tc.set_activetabindex(0); 

we don't have built-in set_activetabindex() method.

you should apply appropriate css properties enabling/disabling tabs.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -