96 of 119 menu

jQuery Events

The tables below list the methods for individual jQuery events and their descriptions:

Mouse Events

Name Description
click A mouse button was clicked on a control. The event occurs after the mouse button was released.
mousedown Mouse button pressed.
mouseup The mouse button is released.
dblclick Double click.
mousemove The mouse pointer moves within the element's display area.
mouseover The mouse pointer is inside the element's display area.
mouseout The mouse pointer has moved outside the element's display area.
mouseenter The mouse pointer is inside the element's display area.
mouseleave The mouse pointer has moved outside the element's display area.
hover Mouse pointing and moving away.

Keyboard Events

Name Description
keydown A button on the keyboard was pressed.
keypress The keyboard button is pressed and not released for longer than the repeat interval. The repeat interval duration is a system parameter and depends on the user's operating system settings.
keyup The previously pressed button is released.

Form and Page Element Events

Name Description
change The element loses input focus, and the element's content changed while the element had focus.
select Some part of the text inside the element becomes highlighted.
submit The "Submit" button has been pressed in the form, but the form has not yet been sent to the server.
blur The control loses input focus, i.e. the cursor moves to another element.
focus The displayed element has received input focus. For text fields, this event means that the cursor is already in the element.
focusin The displayed element has received input focus. For text fields, this event means that the cursor is already in the element.
focusout The control loses input focus, i.e. the cursor moves to another element.

Document Load Events

Name Description
ready DOM pages are ready.
load Loading of elements completed.
unload The document is exited (the page is closed or redirected to another address).

Browser Events

Name Description
scroll Fires when the element is scrolled.
resize Fires when the browser page size is changed.

See also

  • method on,
    which allows you to bind an event handler to an element
  • method trigger,
    which allows you to run all event handlers attached to an element for events of a given type
  • object event,
    which contains properties and methods containing information about the triggered event
byenru