S
S
Sergey Beloventsev2018-06-07 14:56:34
JavaScript
Sergey Beloventsev, 2018-06-07 14:56:34

How can a modal be closed with ajax yii\bootstrap\Modal?

The question is how can I close yii\bootstrap\Modal when receiving a success response when sending ajax. Here in this code

$.ajax({
            url: '/employee/place-location',
            type: 'post',
            data: $data,
            success: function(result) {
                console.log(result)
               //$('.modal-dialog') что дальше писать не знаю 
            }
        })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-06-07
@Sergalas

Isn't it (?):
$('.modal-dialog').modal('hide');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question