Select a jQuery code that contains an error.
Explanation
jQeury .toggleClass Add or remove one or more classes from each element in the set of matched elements. Switch is an optional parameter specifying if the class should only be added (true), or only be removed (false). for example:

$(".content").toggleClass("className", false)
will only remove the class of the element.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes