Answer the question
In order to leave comments, you need to log in
Why doesn't the magnific popup window open?
When 1 magnific popup window is active (open), the second one is not opened. What could be the reason for such behaviour?
Here is the function for the second window, tied to a button click.
$('.submit-button').click(function(){
$.magnificPopup.open({
items: {
src: '<h1>Hello!</h1>',
type: 'inline',
}
});
});
$('.submit-button').click(function() {
setTimeout(function() {
$.magnificPopup.open({
items: {
src: '#solution-for-form', // can be a HTML string, jQuery object, or CSS selector
type: 'inline',
}
});
}, 0)
});
Answer the question
In order to leave comments, you need to log in
You need to call close first :
$('.submit-button').click(function(){
$.magnificPopup.close();
$.magnificPopup.open({
items: {
src: '<h1>Hello!</h1>',
type: 'inline',
}
});
});
look DOM, on which the output agent is hung. did the html of the modal itself render?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question