Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add active in nav

$(document).ready(function() {
    $('a[href$="' + location.pathname + '"]').addClass('active');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #active #nav
ADD COMMENT
Topic
Name
5+5 =