I have a script for popups that I want to be able to use multiple instances of. For example, I would like to have 5 popups on one page without having to change the JavaScript code.
While everything in the script works fine, I am struggling to make it work under multiple instances.
I would like the script to target elements with ids starting with 'popup_', so that I can have popups named popup_one, popup_two, and so on, without needing to modify or add to the JavaScript code.
Any assistance would be greatly appreciated.