In one of the earlier article I have explained about Event Delegation in MooTools. So if you are not sure about the Event Delegation in JavaScript then you can refer this link.
Now in this article I am going to cover Event Delegation with jQuery.
MooTools uses relay for this while earlier version of jQuery use .delegate() form the version 1.7 this function is replaced by the .on().
So now rather than explaining about Event Delegation, I will just explain the code in jQuery. Here you can find the example with both methods which are .on() and .delegate().
<a href="#" class="child">Link</a>
<a href="#" class="child">Link</a>
<a href="#" class="child">Link</a>
<a href="#" class="child">Link</a>
<a href="#" class="child">Link</a>
<a href="#" class="child">Link</a>
</div>
var obj = $('#parent_ele');
// Here comes the Event Delegation
// For jquery below 1.7
obj.delegate("a", "click", function(){
console.log('I am Clicked');
});
// For jQuery 1.7 and above
obj.on("a", "click", function(){
console.log('I am Clicked');
});