[Solved] I cant make function [closed]


Based solely on what’s given, a simple solution would be to select the roundbutton class and toggle an “active” class.

This could be done in jQuery through say a click element by

$("div.round-button").click(function(){
   $(this).toggleClass("active");
});

And that is assuming you are trying to select the div with the class of round button and not the anchor tag. Try not to have a child element with the same class as its parent as this might have been the reason why the JS wasn’t working for you in the first place.

solved I cant make function [closed]