Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

toggle multiple classes jquery

$(".main").click(function() {
    $(this).toggleClass("classA").toggleClass("classB");
    $('.togToo').toggleClass("classC").toggleClass("classD");
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: datetimepicker set value 
Javascript :: clear canvas for redrawing 
Javascript :: react native build apk 
Javascript :: js arrotondare numeri 
Javascript :: protractor element.all for each 
Javascript :: fetch api post req 
Javascript :: react router Link does work 
Javascript :: pass array of strings to match in str.replace 
Javascript :: js console log input value 
Javascript :: jquery populate select from json 
Javascript :: how to get prime numbers in javascript 
Javascript :: retrieve object array value based on key 
Javascript :: find quotient in javascript 
Javascript :: shadowoffset react native constructor 
Javascript :: matrix elements sum javascript 
Javascript :: toobject() javascript 
Javascript :: jquery check if iframe is loaded 
Javascript :: vue.js cdn 
Javascript :: make js file windows command 
Javascript :: javascript letters as number 
Javascript :: shadow border react native 
Javascript :: javascript check if not null 
Javascript :: if checkbox is checked jquery 
Javascript :: react-native curved view 
Javascript :: jquery validation plugin 
Javascript :: how to stop iframe video using javascript 
Javascript :: javascript check date greater than today 
Javascript :: text and icon on same line react native 
Javascript :: redirect script javascript 
Javascript :: jquery change value of input 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =