The .live() method uses event delegation under the hood. doing this:
$('a').live('click', function() {
// do something
});
is like doing this:
$(document).bind('click', function(event) {
if ($(event.target).closest('a').length) {
// do something
}
});
except that with .live() the sel
On Dec 4, 2009, at 11:09 AM, MorningZ wrote:
I wouldn't suggest going the ".live" route if you plan on having a lot
of children of "cat_list"
using event delegation, there is one single event wired up that
handles 1 child or 1200 children
using ".live", you would have N number of events s
2 matches
Mail list logo