Remove class name from element var element = document.getElementById("myDIV"); element.classList.remove("mystyle");