how to destroy bootstrap modal window completely?

后端 未结 24 851
旧时难觅i
旧时难觅i 2020-11-29 18:51

I\'ve made use of modal window for a wizard implementation which has around 4,5 steps. I need to destroy it completely after the last step(

24条回答
  •  [愿得一人]
    2020-11-29 19:10

    It works for Bootstrap v3.3.6

    $('#dialog').modal()
    .on('hide.bs.modal', function () {
        // Some Code
    }).on('shown.bs.modal', function () {
        // Some Code
    }).on('hidden.bs.modal', function () {
        $("#dialog").off();
    });
    

提交回复
热议问题