I want to add the CSS class "active" to the anchor tag that contains the ID currently active in the URL. Here's what I've tried, but I'm unable to get window.location.hash to function properly.
$( "a[href=' + window.location.hash + ']" ).addClass('active');
Your assistance is greatly appreciated!
Also, I need to remember to remove that class if the value of "window.location.hash" changes! I overlooked that part :(