I have read the documentation of each function on jQuery official website
, but there is no such comparison listings between below functions:
$().click(fn)
$().bind('click',fn)
$().live('click',fn)
$().delegate(selector, 'click', fn)
$().trigger('click') // UPDATED
$().on('click', selector ,fn); // more UPDATED
Please avoid any reference link.
How do all above functions exactly works and which should be preferred in which situation?
Note: If there are any other function(s) having the same functionality or mechanism, Then please elaborate.
Update
I have also seen a $.trigger
function. Does it work similar to the above functions?
More Update
Now .on
is added in v1.7 and I think this one somehow cover all of above functions requirement together.