function removeElementsByClass(className){
var elements = document.getElementsByClassName(className);
while(elements.length > 0){
elements[0].parentNode.removeChild(elements[0]);
}
}
const div = document.querySelector('div') // Get element from DOM
div.classList.remove('info') // Remove class "info"
document.getElementById("div1").classList.remove("classToBeRemoved");
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.remove("mystyle");
}
document.getElementsByClassName("legend").style.display="none";
element.classList.remove(className);