Lucas Ariel Enrich Lucas Ariel Enrich - 1 year ago 37
Javascript Question

How to remove a class on click event?

this is the html:



</html> `

this the css:

height: 100px;
width: 100px;
background-color: green;

and this the js (EDITED):

var main=function(){




It (STILL) doesn't work. Can someone help me?


To select class, you should preface class name with a dot:


JQuery docs you may want to review.