A
A
Alexey102018-01-28 09:55:31
JavaScript
Alexey10, 2018-01-28 09:55:31

How to make one popup with different content (fancybox library)?

Guys, hello everyone))
This is the situation:
There are 6 product cards, when you click on the buy button, a pop-up opens.
Question:
How to use one popup (popup template) for all product cards, only change the content (text and image) in it depending on which card was clicked?
You cannot make 6 different pop-ups, as there can be many cards. I am using the fancybox
library . Please help anyone who has come across this situation. Thank you all for your reply)))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question