Answer the question
In order to leave comments, you need to log in
Why doesn't addEventListener work?
The code
itself When clicked, it gives an error
https://jsfiddle.net/hx4627sz/5/
Answer the question
In order to leave comments, you need to log in
You need to run a cycle on currentItem and hang addEventListener on each element in the iteration, but it’s better to take a querySelector and hang an event on it, then figure out what and how, then without a cycle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question