Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle multiple classes jquery

$(".main").click(function() {
    $(this).toggleClass("classA").toggleClass("classB");
    $('.togToo').toggleClass("classC").toggleClass("classD");
})
 
PREVIOUS NEXT
Tagged: #toggle #multiple #classes #jquery
ADD COMMENT
Topic
Name
4+7 =