Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

addAndRemoveClassJquery

$('#menu li a').on('click', function(){
    $('#menu li a.current').removeClass('current');
    $(this).addClass('current');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #addAndRemoveClassJquery
ADD COMMENT
Topic
Name
1+7 =