I am using JavaScript and I want to add/remove a Class attribute if a button is clicked. I am able to add the class, but I don\'t know how to remove it. how can I do that?
box.removeAttribute("class") should work.
box.removeAttribute("class")