Bootstrap: Open Another Modal in Modal

后端 未结 21 1009
难免孤独
难免孤独 2020-11-27 11:28

So, I\'m using this code to open another modal window in a current opened modal window:



        
21条回答
  •  囚心锁ツ
    2020-11-27 11:40

    I went kind of a different route all together, I decided to "De-Nest" them. Maybe someone will find this handy...

    var $m1 = $('#Modal1');
    var $innermodal = $m1.find(".modal");     //get reference to nested modal
    $m1.after($innermodal);                  // snatch it out of inner modal and put it after.
    

提交回复
热议问题