Can we toggle between two classes using the "toggleClass" method of jquery? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Can we toggle between two classes using the "toggleClass" method of jquery?

Toggle two or more classes

29th Jan 2017, 4:53 AM
Anjum Chauhan
Anjum Chauhan - avatar
1 Antwort
+ 4
Yes, you can. use $("selector").toggle class("class"); method
2nd Feb 2017, 2:53 PM
Vikash Pal
Vikash Pal - avatar