Sunday, 17 April 2016

JQuery Events Methods

Like a programming language a JQuery also have some events. JQuery event occurs on a webpage when user take some actions like mouse click, mouse scroll, checkbox 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
});



No comments:

Post a Comment