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 toggle class in javascript using css modules
onClick() { alert("clicked"); $('.'+ styles.transform ).toggleClass(styles.transform-active); }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#add
#toggle
#class
#javascript
#css
#modules
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit