+ 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?
2 odpowiedzi
+ 3
Here you go:
https://code.sololearn.com/WaZskZhncTqj/?ref=app
0
It worked, thanks @Vrintle !