Answers for "remove class in vanilla javascript"

7

javascript remoev css class

//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");
Posted by: Guest on July-31-2019
1

addclass js vanilla

element.classList.add('className');
Posted by: Guest on January-10-2021

Code answers related to "remove class in vanilla javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language