Answers for "event delegation javascript"

0

event delegation javascript

Explain event delegation :

“Js event listeners fire not only on a  single DOM element 
but on all its descendents”

The idea is that if we have a lot of elements handled in a 
similar way, then instead of assigning a handler to each of 
them – we put a single handler on their common ancestor.
Posted by: Guest on March-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language