JavaScript

jQuery: Difference between bind, live and on

Equivalent:

$('button').bind('click', fn);
$('button').on('click', fn);

Equivalent:

$('button').live('click', fn);
$(document.body).on('click', 'button', fn);
Standard