Created
October 13, 2014 05:24
-
-
Save yfktn/9705467cde930716d536 to your computer and use it in GitHub Desktop.
JS Script to automatically set menu as active in the bootstrap nav
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
$('ul.nav a[href="' + window.location + '"]').parent().addClass('active'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment