Created
July 21, 2013 18:48
-
-
Save schmidtsonian/6049517 to your computer and use it in GitHub Desktop.
Add class to active a menu
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
function setActiveMenu( element ){ | |
$(element).click(function(){ | |
$(element).removeClass('active'); | |
$(this).addClass('active'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment