Bubbling and Event Delegation
A click travels up from the element it happened on through every parent, so one listener on a list can handle every button inside it, even buttons added later.
Updated

- Category
- JavaScript
- Level
- Journeyman
- Tags
- Custom data attribute, Event Bubbling, Event Delegation, JavaScript, stopPropagation(), web-development