DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+5 =
Submit