How to change class name of an HTML element – javascript
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);
Beginner's Guide....
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);