Created
June 19, 2012 10:25
-
-
Save rambuvn/2953416 to your computer and use it in GitHub Desktop.
js tab submit form
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
setInterval(function(){ | |
var activetab = new String(window.location.hash); | |
activetab = activetab.substring(1); | |
if($('#tab-'+activetab).hasClass('active')|| activetab=="") return; | |
$('#tab-'+activetab).click(); | |
},100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment