Created
March 28, 2009 02:59
-
-
Save davidphasson/87011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Operates on tabs with class "form_tab" - hides all but "tabname" | |
function switch_tab(tabname) | |
{ | |
tabs = $$('.form_tab'); | |
for ( var i in tabs ) | |
{ | |
tab = tabs[i]; | |
(tabname == tab.id) ? tab.show() : tab.hide(); | |
} | |
scroll(0,0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment