0
I could understand the concept of bubling
Can anyone explain in detail how it works and how it is implemented
1 ответ
+ 11
Bubbling is when events trigger first on the specific thing you interact with, and then up the chain to the more general things it's inside.
Ex: If you click a link in a list, the event triggers first for the link, then the list item, then the list itself, then the entire document.
By the way, Capturing is the opposite, triggering on the document first, then the list, list item, and then the link. From general to specific.