how to remove class using class name in javascript code example
Example 1: es6 add and remove class
let el = document.getElementById('container');
//remove class
el.classList.remove('first');
//remove class
el.classList.add('first');
Example 2: how to remove an class in javascript
document.getElementsByClassName("legend").style.display="none";