+ 1

How do you use the slideToggle function in jQuery with classes?

25th Feb 2020, 10:19 PM
Aiki
Aiki - avatar
3 Answers
+ 4
Aiki jQuery selectors are like CSS selectors. $(".class1").slideToggle(200)
26th Feb 2020, 2:12 AM
Kevin ★
25th Feb 2020, 10:21 PM
Cmurio
Cmurio - avatar
+ 2
Jesus Eduardo Canul Koyoc I mean with classes in html. Like if you had something like this in a style tag: .class1 { code; } Then you do the slide Toggle thing with what the class is. How do you do that
25th Feb 2020, 10:23 PM
Aiki
Aiki - avatar