Created
November 27, 2020 18:04
-
-
Save wpflames/3ae7bf691cb10736fd21fd2dc5973470 to your computer and use it in GitHub Desktop.
jQuery - Add class / remove class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('.YOUR_CLASS').on('click', function() { | |
| jQuery('.YOUR_CLASS').removeClass('active'); | |
| jQuery(this).addClass('active'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment