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?
Simple:
box.removeAttribute('class');
See https://developer.mozilla.org/en/DOM/element.removeAttribute