addandremoveclassjquery

Solutions on MaxInterview for addandremoveclassjquery by the best coders in the world

showing results for - "addandremoveclassjquery"
Philipp
26 Mar 2019
1$('#menu li a').on('click', function(){
2    $('#menu li a.current').removeClass('current');
3    $(this).addClass('current');
4});
5
similar questions
queries leading to this page
addandremoveclassjquery