Last active
December 14, 2015 07:59
-
-
Save cobbman/5054171 to your computer and use it in GitHub Desktop.
jQuery: Highlight current navigation element. Useful for highlighting nav elements when you are on the "current" page of a dynamic site, where the same header file is loaded for every page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to add some unique styling in your CSS for your 'current' class. Maybe make the text BOLD or set a different background color for the tab. The possibilites are endless.