Updated on Kisan Patel
How to remove an class in javascript?
Solution 1:
//remove a css class from an element document.getElementById("myElementID").classList.remove("class_name");
Solution 2:
document.getElementsByClassName("legend").style.display = "none";
Solution 3:
function removeClass() { var element = document.getElementById("myDIV"); element.classList.remove("mystyle"); }