Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click on list item javascript highlight

$(".nav-sidebar").on('click', 'li', function(e) {
    $(this).parent().find('li.active').removeClass('active');
    $(this).addClass('active');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #list #item #javascript #highlight
ADD COMMENT
Topic
Name
2+3 =