Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add and remove class in jquery


$('#menu li a').on('click', function(){
    $('#menu li a.current').removeClass('current');
    $(this).addClass('current');
});

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #add #remove #class #jquery
ADD COMMENT
Topic
Name
2+7 =