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

Adding a class with javascript, not replace

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

Hits: 86

%d bloggers like this: