I have an anchor text that when click adds an active class to another class. I want to remove it when it has an active class or if I click the anchor text again. How can I do th
Try this
$(function(){ $("#menu1").click(function(){ $(this).toggleClass("active"); $("a.mm-title").toggleClass("remove"); }); });
Let me know if it is helpful