Javascript Event Delegation Model

JavaScript is the main part of web development. Even you can optimize the performance of java script in the web for higher efficiency.  Javascript Event Delegation Model model can be implemented for avoiding events to occur recursively through out the HTML Element.

The best example for event delegation is if you are creating HTML element dynamically with java-script we can easily implement event delegation model.

For Eg:- JavaScript :