Home / JS / Adding a class with javascript, not replace

Adding a class with javascript, not replace

document.getElementById("myDIV").classList.add("mystyle");

Hits: 4

Leave a Reply