Easy Tutorial
❮ Jquery Noconflict Misc Each ❯

jQuery Event Methods


jQuery Event Methods

Event methods trigger or attach a function to be executed on the selected elements' event handlers.

The table below lists all jQuery methods used for handling events.

Method Description
bind() Adds an event handler to elements
blur() Adds/triggers the blur event
change() Adds/triggers the change event
click() Adds/triggers the click event
dblclick() Adds/triggers the double click event
delegate() Adds a handler to current or future matched elements
die() Removed in version 1.9. Removes all event handlers added by the live() method
error() Deprecated in version 1.8. Adds/triggers the error event
event.currentTarget The current DOM element within the event bubbling phase
event.data Contains optional data passed to an event method when the current executing handler is bound
event.delegateTarget Returns the element where the currently-called jQuery event handler was attached
event.isDefaultPrevented() Returns whether event.preventDefault() was called on the event object
event.isImmediatePropagationStopped() Returns whether event.stopImmediatePropagation() was called on the event object
event.isPropagationStopped() Returns whether event.stopPropagation() was called on the event object
event.namespace Returns the namespace specified when the event was triggered
event.pageX Returns the mouse position relative to the left edge of the document
event.pageY Returns the mouse position relative to the top edge of the document
event.preventDefault() Prevents the default action of the event
event.relatedTarget Returns which element the mouse entered or exited
event.result Contains the last value returned by an event handler triggered by the specified event
event.stopImmediatePropagation() Prevents other event handlers from being called
event.stopPropagation() Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event
event.target Returns which DOM element triggered the event
event.timeStamp Returns the number of milliseconds since January 1, 1970, when the event is triggered
event.type Returns which event type was triggered
event.which Returns which key or button was pressed on the event
event.metaKey Indicates whether the META key was pressed when the event fired
focus() Adds/triggers the focus event
focusin() Adds an event handler to the focusin event
focusout() Adds an event handler to the focusout event
hover() Adds two event handlers to the hover event
keydown() Adds/triggers the keydown event
keypress() Adds/triggers the keypress event
keyup() Adds/triggers the keyup event
live() Removed in version 1.9. Adds one or more event handlers to selected elements, now or in the future
load() Deprecated in version 1.8. Adds an event handler to the load event
mousedown() Adds/triggers the mousedown event
mouseenter() Adds/triggers the mouseenter event
mouseleave() Adds/triggers the mouseleave event
mousemove() Adds/triggers the mousemove event
mouseout() Adds/triggers the mouseout event
mouseover() Adds/triggers the mouseover event
mouseup() Adds/triggers the mouseup event
off() Removes event handlers added with the on() method
on() Adds an event handler to elements
one() Adds one or more event handlers to selected elements. The handler is executed at most once per element
$.proxy() Takes an existing function and returns a new one with a specific context
ready() Specifies a function to execute when the DOM is fully loaded
resize() Adds/triggers the resize event
scroll() Adds/triggers the scroll event
select() Adds/triggers the select event
submit() Adds/triggers the submit event
toggle() Removed in version 1.9. Adds two or more functions to toggle between for the click event
trigger() Triggers all events bound to the selected elements
triggerHandler() Triggers all functions bound to a specified event for the selected elements
unbind() Removes the added event handlers from the selected elements
undelegate() Removes event handlers from current or future selected elements
unload() Deprecated in version 1.8. Adds an event handler to the unload event
contextmenu() Adds an event handler to the contextmenu event
$.holdReady() Used to pause or resume the execution of the .ready() event
❮ Jquery Noconflict Misc Each ❯