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?
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.
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.
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.
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()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With