Open Chijioke11 opened 7 years ago
you can use the delegate
option :
jQuery(document).magnificPopup({
delegate: ".popup-webcam",
type: "iframe",
//...
});
It's not working that way. I got Error: Syntax error, unrecognized expression: https://www.youtube.com/...
When a DOM content containing a popup-webcam class is loaded on the webpage dynamically, how do delegate the event so it still works as normal.