Answers for "javascript change properties of elements with class name"

10

javascript change class of item

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

Code answers related to "javascript change properties of elements with class name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language