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);