Search
 
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
Name
6+7 =