Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add CSS class

const myElement = document.querySelector(".my-element");

myElement.classList.add("my-class");
Source by sabe.io #
 
PREVIOUS NEXT
Tagged: #javascript #add #CSS #class
ADD COMMENT
Topic
Name
4+5 =