Web Development with jQuery®

(Elliott) #1

Appendix D (^) ❘ 513
trigger(events,
parameters)
string events
array parameters
The trigger() method accepts an optional data argu-
ment. The data argument is an object that is passed to
event object functions being triggered as event.data.
triggerHandler(events)
string events
Triggers the specifi ed event on matched elements while
canceling the browser’s default action for any given
event.
triggerHandler(events,
parameters)
string events
array parameters
The triggerHandler() method accepts an optional
data argument. The data argument is an object that
is passed to event object functions being triggered as
event.data.
unbind() Removes all events from the selected element(s).
unbind(events)
string events
Removes the specifi ed event from the selected
element(s).
unbind(events, function)
string events
function(event)
Removes by event and event handler.
unbind(events, false)
string events
Removes the specifi ed events.
undelegate() Provides the same functionality as the off() method in
jQuery 1.4.2 and later. The off() method is preferred
over undelegate() in jQuery 1.7 or later.
undelegate(selector,
events)
string selector
string events
Provides the same functionality as the off() method in
jQuery 1.4.2 and later. The off() method is preferred
over undelegate() in jQuery 1.7 or later.
undelegate(selector,
events, function)
string selector
string events
function(event)
Provides the same functionality as the off() method in
jQuery 1.4.2 and later. The off() method is preferred
over undelegate() in jQuery 1.7 or later.
continues
http://www.it-ebooks.info

Free download pdf