Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle class in javascript

$('.click-class').click(function() {
    $('.class-toggle').toggle();
    $('.class-toggle').toggleClass('add-class');
})
 
PREVIOUS NEXT
Tagged: #toggle #class #javascript
ADD COMMENT
Topic
Name
6+8 =