Answers for "dynamically change class"

0

dynamically change class

document.getElementById('idOfElement').className = 'newClassName';
// += to keep existing classes
Posted by: Guest on May-17-2021

Code answers related to "dynamically change class"

Browse Popular Code Answers by Language