Answers for "change the class name using js"

10

Javascript change element class

document.getElementById("myElementID").classList.add('myClassName');
document.getElementById("myElementID").classList.remove('myClassName');
Posted by: Guest on July-22-2019

Code answers related to "change the class name using js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language