Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add navbar active

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