Created
May 18, 2017 16:50
-
-
Save lizardking8610/c80b62bc0d8ed7b7268058ddb1ff57cd to your computer and use it in GitHub Desktop.
jQuery Add/Remove Class on Hover
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
| $('#elm').hover( | |
| function(){ $(this).addClass('hover') }, | |
| function(){ $(this).removeClass('hover') } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment