What are events in jQuery?

Events are users actions on a web page that a web page can respond to.
For example, pressing a keyboard key, bringing mouse pointer to a link, clicking a link, loading of a web page, closing a web page and other actions.
jQuery is tailor-made to respond to many useful events that a web page can get. As a user triggers those events, custom function or actions can be performed by catching those events in jQuery event handlers.
jQuery Events can be categorized into the following:

  • Keyboard events e.g. keypress, keydown, keyUp.
  • Form Events e.g. the form submit event.
  • Document events e.g. load event, resize event.

Syntax of jQuery event methods

The general syntax used for events in jQuery is:

selector.event_method();

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*