Created
October 8, 2012 17:21
-
-
Save jlittlejohn/3853722 to your computer and use it in GitHub Desktop.
JS: Add/Remove Active State
This file contains hidden or 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
$(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