jQuery toggleClass() method

A very common scenario for a web developer to add and remove some class based on a condition, for example

but we can make this code little shorter and sweat by using jquery toggleClass method

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

Your email address will not be published. Required fields are marked *