+ 1

Selecting element from a array on click.

Is there a way I can get the index of a html element from a array with items of the same class, like document.getElementsByClassName() when I click the element?

14th Sep 2020, 6:54 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
2 ответов
14th Sep 2020, 7:14 AM
777
777 - avatar
0
It worked, thanks @Vrintle !
14th Sep 2020, 7:31 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar