how to open popup within popup in magnific popup plugin

javascript, jquery, magnific-popup, popup

Solution

You can't have two windows open at once. But the content of popup is replaced when is called second time, here is example - http://codepen.io/dimsemenov/pen/hwIng

Problem

can anybody tell me how to open popup within popup using magnific-popup jquery plugin (using ajax). ``` $('.ajax-popup-link').magnificPopup({ type: 'ajax' }); <a href="path-to-file.html" class="ajax-popup-link"> Link 1 </a> ``` on "path-to-file.html" ``` <a href="path-to-other-file.html" class="ajax-popup-link"> next popup </a> ``` Thanks

Original source