I have dynamic list which shows 4 images. Then if user clicks on the image it shows him popup(which is inside of each image but has display-none). I added ID to popup. I want to make overflow hidden for body when pop-up is open(display-block).
The problem is that when I make: var pupUp = document.getElementById(“pupUpWraper”) it only works for first CMS image. How can I make it work for all pop-ups? Should I use getElementByClassName?