jQuery Page events



$("Element").bind("type", [data], function)

Indicates that a particular event is bound to an element Type: Event type Data: return type(optional) Function: the normal js method or jQuery method Detailed application see case


$("Element").live("type", function)

Said the binding for a certain element of a specific event, it is recommended to use this method instead of the above bind


$("Element").unbind([type], function)

In contrast to the bind method, a particular event bound by a matching element is deleted
Type: Event type(optional)
Function: the anti-binding event handler(optional)
If none of the above parameters, the event will be unmatched binding of all elements of the binding


$("Element").die("type", function)

It is recommended to use this method instead of the above unbind


$("Element").one("type", [data], function)

Represents a specific event that is bound to a single element at once
Type: Event type
Data: return type(optional)


$("Element").trigger("type", [data])

Binds certain types of events on each matching element
Type: Event type
Data: additional parameters(optional)


$("Element").triggerHandler("type", [data])

Binds certain types of events on each matching element, but does not execute the browser default event




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook