M
M
Max2018-02-06 16:51:58
AJAX
Max, 2018-02-06 16:51:58

How to trigger popup window after ajax form submit?

I understand that the question is probably stupid, but I can’t find an example anywhere, how to show a pop-up window with the text after submitting the AJAX form, I display alert, but I don’t understand how to display the pop-up)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kuzmenko, 2018-02-06
@max8901

As an option:

$.ajax({
        type: 'get',
        url: "to/url",
        success: function(data) {
            // вызов функции отображения всплывающого окна/модалки
            showModal();
        }
    })

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question