JQuery Events Methods

Like a programming language, a JQuery also has some events. JQuery event occurs on a web page when a user takes some actions like the mouse click, mouse scroll, check box selection etc.



Below are some events.

Mouse Events
Keyboard Events
Window Events
Form Events
Click
Key press
Load
Submit
Double Click
Key down
Scroll
Blur
Mouse Enter
Keyup
Resize
Focus


Unload



$(document).ready(function() {
alert("Document Ready Event");
});

$(window).load(function() {
alert("window load event");
});

JQuery Syntax for  Click Event

$("p").click(function()
{
//write code here
});



Comments

Popular