Answers for "jquert toggleClass condition"

1

jquert toggleClass condition

// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)
Posted by: Guest on November-10-2020
0

toggle class jquery

toggleClass
Posted by: Guest on August-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language