Skip to content

Jquery Toogle Class

This article helps you how can add Toogle Class using Jquery.

This method takes one or more class names as its parameter. In the first version, if an element in the matched set of elements already has the class, then it is removed; if an element does not have the class, then it is added. For example, we can apply .toggleClass() to a simple <div>:

jQuery has a toggleClass function:


Be First to Comment

Leave a Reply

Your email address will not be published.

Share via
Copy link
Powered by Social Snap