DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript change element class
//Overwrite all classes element.className = "class"; //Add class element.classList.add("class");
PREVIOUS
NEXT
Tagged:
#javascript
#change
#element
#class
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit