Skip to content

Instantly share code, notes, and snippets.

@jlittlejohn
Created October 8, 2012 17:21
Show Gist options
  • Save jlittlejohn/3853722 to your computer and use it in GitHub Desktop.
Save jlittlejohn/3853722 to your computer and use it in GitHub Desktop.
JS: Add/Remove Active State
$(document).ready(function(){
$("nav.tabs li a").click(function(){
$(" nav.tabs li .active").removeClass("active");
$(this).addClass("active");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment