Solutionunvalidated
The simplest way of achieving this is by using "event delegation" — adding the event to a parent container housing all target elements. Tension: before carrying out the action. Outcome: Make sure that this code is run only once, as soon as the `body` element is in place on your page.
d365d4f6-992b-4945-b97b-24a31063114d
The simplest way of achieving this is by using "event delegation" — adding the event to a parent container housing all target elements. Tension: before carrying out the action. Outcome: Make sure that this code is run only once, as soon as the body element is in place on your page.