Back

.click( handler )

Handle a "click" event on any element in the current set

Equivalent to .on('click', handler)

Params

handler{Function}A function to execute when an element is clicked

Returns

DollarJS (chainable)

Examples

$('div').click(function(event){ console.log(this); })