DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to add class in javascript dynamically
<h1 class={isLoggedin ? "active" : "disabled"}>HELLO WORLD</h1>
PREVIOUS
NEXT
Tagged:
#add
#class
#javascript
#dynamically
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit