Javascript to make the current page nav have an active class February 2, 2015jQuery Crumbsacrane $("[href]").each(function() { if (this.href == window.location.href) { $(this).addClass("active"); } });