Answers for "how to modify the existing class name css"

12

javascript change element class

//Overwrite all classes
element.className = "class";

//Add class
element.classList.add("class");
Posted by: Guest on June-02-2020

Code answers related to "how to modify the existing class name css"

Code answers related to "Javascript"

Browse Popular Code Answers by Language