jQuery Events

0
25

jquery-javascript eventsIn this tutorial, you are going to learn how to put events on the HTML elements using jQuery. With this, you can set up an event handler on the page elements. These events are used by the web user’s to interact with the page and in some cases browser itself will perform the event.

 

jQuery offers easy methods for most browser events. These methods are:

  • Click()

Example: The click event handler will perform, if you click on any <h3> element.

 

  • dbclick()

Example: The dbclick event handler will perform, if you double click on any <h3> element.

 

  • mouseenter()

Example: The mouseenter event handler will perform, if you drag the mouse pointer on any <h3> element.

 

  • mouseleave()

Example: The mouseleave event handler will perform, if you leave the mouse pointer on any <h3> element.

 

  • mousedown()

Example: The mousedown event handler will perform, if you press down the left mouse button while the mouse pointer is above any <h3> element.

 

  • moseup()

Example: The mouseup event handler will perform, if you release the left mouse button while the mouse pointer is above any <h3> element.

 

  • hover()

Example: The hover event handler will perform, if you hover the mouse pointer on any <h3> element the first function will be executed, and if you leave the mouse pointer on any <h3> element the second function will be executed.

 

  • focus()

Example: The focus event handler will perform, if the fields in the form gets focus.

 

  • blur()

Example: The blur event handler will perform, if the fields in the form loose focus.

 

For all students who need programmer for your thesis system or anyone who needs a sourcecode in any programming languages. You can contact me @ :

 

Email – [email protected]
Mobile No. – 09305235027 – tnt

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here