Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a full list of jQuery event types

Where I can find a complete list of all jQuery supported events (like click, mouseup etc) with some explanations when they are triggered? I am looking for those that can be binded:

$('#foo').bind('click', handler); 

For example I just found out by accident that there is paste event but I can't find any references to it anywhere in their docs. What else is there?

like image 264
serg Avatar asked May 27 '10 19:05

serg


People also ask

What is jQuery event model?

This model provides a unified method for establishing event handlers. This model uses standard event-type names: for example, click or mouseover. It Allows multiple handlers for each event type on each element. It makes the Event instance available as a parameter to the handlers.

What are event handlers in jQuery?

A jQuery Event is the result of an action that can be detected by jQuery (JavaScript). When these events are triggered, you can then use a custom function to do pretty much whatever you want with the event. These custom functions are called Event Handlers.

Does jQuery have an event object?

Category: Event Object. jQuery's event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler. Most properties from the original event are copied over and normalized to the new event object.


1 Answers

A non exhaustive list is at http://api.jquery.com/category/events/. There are more DOM events supported through .bind() and .live(). Those functions can assign a handler to any standard DOM event, most of which are listed along with compatibility tables at http://www.quirksmode.org/dom/events/

The .bind() method is the primary means of attaching behavior to a document. All JavaScript event types, such as focus, mouseover, and resize, are allowed for eventType.


As of jQuery 1.7, you should use .on() in place of .live() and .bind().

like image 197
Andy E Avatar answered Nov 09 '22 09:11

Andy E