Back

.trigger( events, [extraParameters...] )

Trigger events on each element in the current set

Executes all handlers bound to each element in the current set corresponding to the given event names

Params

events{String}A string-separated list of event names to be triggered
extraParameters...{Any} [optional]Additional parameters to pass along to the event handler

Returns

DollarJS (chainable)

Examples

$('p').trigger('click')
$('p').trigger('click', 'extra', 'params')
$('p').trigger('one two three')