Bootstrap modal: close current, open new

前端 未结 27 1707
离开以前
离开以前 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:22

    Bootstrap modal: close current, open new

    A proper and clean way to get this done without addtional Javascript/jQuery. The main purpose of this demo is was to answer this question on stackoverflow



    Usage:

    <!-- Button trigger modal -->
    <ANY data-toggle="modal" data-target="TARGET">...</ANY>
    
    <div class="modal fade" id="SELECTOR" tabindex="-1">
      <div class="modal-dialog">
       <div class="modal-content">
        <div class="modal-body"> ... </div>
         <div class="modal-footer">           <!-- ↓ -->  <!--      ↓      -->
          <ANY data-toggle="modal" data-target="TARGET-2" data-dismiss="modal">...</ANY>
         </div>
       </div>
      </div>
    </div>



提交回复
热议问题