How to handle the event on click?

On the website there are several links to some of the linked pop-UPS on hover. You need to when you click on the link and volgogradskoe lesopererabatyvayuschee predp-e. the Windows were changed some css settings and overturned by clicking on the same link or on another part of the site.

This time, if possible, they have the same classes and I would not want to register the script for each link again. Thanks in advance.
July 9th 19 at 10:41
1 answer
July 9th 19 at 10:43
should be some uniqueness in the references, otherwise you will not understand what content to add when you click on a specific link, class, or date attribute, it does not matter, well able to breed of popups for each link, but this is worse than to add the link or add the content in the data attributes.

Find more questions by tags JavaScript