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

Adding a class with javascript, not replace

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

Hits: 13

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.