I have this little function to do something after a pop-up is loaded:
jQuery(window).on('jet-popup/show-event/before-show', function () {
console.log("popup open");
});
This is working but unfortunately this goes for every pop-up on my site and I want it only if the pop-up with a specific id is showing. I tried this but this is not working at all. I'm getting no errors but it doesn't work either.
jQuery(window).on('jet-popup/show-event/before-show','#popup_id', function () {
console.log("popup open");
});