Bootstrap modal: close current, open new

前端 未结 27 1761
离开以前
离开以前 2020-11-29 00:23

I have looked for a while, but I can\'t find a solution for this. I want the following:

  • Open an URL inside a Bootstrap modal. I have this working off course. S
27条回答
  •  没有蜡笔的小新
    2020-11-29 01:14

    $("#buttonid").click(function(){
        $('#modal_id_you_want_to_hid').modal('hide')
    });
    
    // same as above button id
    $("#buttonid").click(function(){
    $('#Modal_id_You_Want_to_Show').modal({backdrop: 'static', keyboard: false})});
    

提交回复
热议问题