JS - remove class

0 votes
222 views
added Jun 28, 2019 in Javascript by LC Marshal Captain (25,790 points)
function removeClass() {
  var element = document.getElementById('myelement');
  element.classList.remove('thisclass');
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...