Skip to content

Instantly share code, notes, and snippets.

@rambuvn
Created June 19, 2012 10:25
Show Gist options
  • Save rambuvn/2953416 to your computer and use it in GitHub Desktop.
Save rambuvn/2953416 to your computer and use it in GitHub Desktop.
js tab submit form
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