Is there any priority or rule to know whether a click on a DOM element will trigger the most inner children or the most outer grandparent? And another question, how would you handle the case where you want only a specific element to handle a particular event? For instance, the parent, but not the child nor the grandparent.
Thanks!!
Is there any priority or rule to know whether a click on a DOM element will trigger the most inner children or the most outer grandparent? And another question, how would you handle the case where you want only a specific element to handle a particular event? For instance, the parent, but not the child nor the grandparent.
Thanks!!
Bubbling will go from child to parent and capturing is the other way around.