how to add / remove class in javasvript
snippet in javascript

how to add / remove class in javasvript

user2877


function removeClass() {
  var element = document.getElementById("myDIV");

    element.classList.remove("mystyle");
}