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.
Login in to like
Login in to comment