Why don't you open one modal, with multiple content with specific id ref, have button click send the reference of specific content, then hide all content but that specific id ref.
Hi, I'm looking to do exactly what you said using this example (https://www.w3schools.com/howto/howto_js_lightbox.asp)
I have two sets of pictures and I want to display two different lightboxes in the same page, but I can't find the correct way to do it.
How can I include more than one modal pop ups?
in JavaScript
Posted
Hi, I'm looking to do exactly what you said using this example (https://www.w3schools.com/howto/howto_js_lightbox.asp)
I have two sets of pictures and I want to display two different lightboxes in the same page, but I can't find the correct way to do it.
Any help will be greatly appreciated. Thanks!