Answers for "vanilla javascript remove class"

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 "vanilla javascript remove class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language