Back

.focus( handler )

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

Equivalent to .on('focus', handler)

Params

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

Returns

DollarJS (chainable)

Examples

$('input').focus(function(event){ console.log(this); })