Answer the question
In order to leave comments, you need to log in
How to implement multiple windows via Bootstrap Modal?
How can I make the opening of the second modal on top of the previous one via ajax
Using Bootstrap. An example implementation as in VK, that is, when the top one is closed, the previous window opens.
The window call goes like this
var $modal = $('#modal');
$('.open-modalblock').on('click', function () {
if ($modal.hasClass("in")) {
$('body').modalmanager();
} else {
$('body').modalmanager('loading');
}
var href = $(this).attr('href');
$modal.load(href, '', function () {
$modal.modal();
});
});
Answer the question
In order to leave comments, you need to log in
Found the solution myself.
It was enough to set the data-replace="false" parameter so as not to replace the block
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question