events | {String} | A space-separated list of events to listen for |
handler | {Function} | A function to execute when one of the events is triggered |
DollarJS (chainable)
$('p').on('click', function(event){ console.log(this); })
$('p').on('custom', function(event){ console.log(event.detail); })
Aliased as .bind() for compatibility