I'm trying to get some images to work with lightbox but I do not want all images on that site to react to the eventlistener.
This is how my images are declared:
<img class="thumbnail" id="imga" src="~/lib/images/IC/Bild1,5_Pirellival.png"/>
This is what I tried but it is not working:
const images = document.getElementsByClassName('thumbnail')
I do not want to use querySelectorAll('img')
because this would mess up my other images on the same page.
Any advice?