Currently every button will be selected. It either does something since the container matches or it does nothing when the container does not contain the correct elements. So we would like to add some marker class to take control if the delegation and action should be added or not.
- marker classes
- event delegation
- jQuery
.each()
function
on Codepen