Lucas Ariel Enrich Lucas Ariel Enrich - 5 months ago 6x
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.