Created
October 21, 2022 12:35
-
-
Save humayunahmed8/26145f2998465a76033868a5de6c348f to your computer and use it in GitHub Desktop.
JQuery Syntax
This file contains 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
$(document).ready(function(){ | |
// jQuery methods go here... | |
$("p").on({ | |
mouseenter: function(){ | |
$(this).css("background-color", "lightgray"); | |
}, | |
mouseleave: function(){ | |
$(this).css("background-color", "lightblue"); | |
}, | |
click: function(){ | |
$(this).css("background-color", "yellow"); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment