Events in jQuery

$(document).ready()
The $(document).ready() method allows us to execute a function when the document is fully loaded.

click()
The function is executed when the user clicks on the HTML element.

dblclick()
The function is executed when the user double-clicks on the HTML element:

mouseenter()
The function is executed when the mouse pointer enters the HTML element:

mouseleave()
The mouseleave() method attaches an event handler function to an HTML element.
The function is executed when the mouse pointer leaves the HTML element:
 
mousedown()
The function is executed, when the left mouse button is pressed down, while the mouse is over the HTML element:
 
mouseup()
The function is executed, when the left mouse button is released, while the mouse is over the HTML element:

hover()
The first function is executed when the mouse enters the HTML element, and the second function is executed when the mouse leaves the HTML element.

focus()
The function is executed when the form field gets focus.

blur()
The function is executed when the form field loses focus.

No comments:

Post a Comment