Z
Z
Zombie426792018-03-05 17:50:33
JavaScript
Zombie42679, 2018-03-05 17:50:33

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

1 answer(s)
D
Dima Polos, 2018-03-05
@dimovich85

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 question

Ask a Question

731 491 924 answers to any question