JS - remove class

0 votes
93 views
added Jun 28, 2019 in Javascript by LC Marshal Captain (25,770 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.
...