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?
For cross-browser support:
buttonCom.onclick = function() { box.className = ''; // IE box.removeAttribute('class'); // Others };