I have such problem. On my site i use 2 popup windows. On button click opened first popup. By clicking on link inside first popup opened second popup-window. Problem: When i click on close button in second popup - at the same time, both popup windows are closed. Goal: close only secon popup window. I use this js-code for 2 popups:
/* Popup */
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true
});
HTML Code:
<a href="#first-popup" class="open-popup-link">Button</a>
<div id="first-popup" class="popup-form">
<!-- first popup content -->
<a href="#second-popup" class="open-popup-link">Link</a>
</div> <div id="second-popup" class="popup-form">
<!-- second popup content -->
</div>
Tell me please how to do it, thank you in advance.