bootstrap modal inside a modal

Ebin Manuval

How can I build a bootstrap modal inside another modal using Jquery .The first modal should be there in the background. When I refereed bootstrap documentation seen that Showing more than one modal at a time requires custom code. Any idea ?

Warface

You might wanna try the Bootstrap Modal plugin (Demo here - Stackable, Source here)

<div id="stack1" class="modal fade" tabindex="-1" data-focus-on="input:first" style="display: none;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 class="modal-title">Stack One</h4>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
    <p>One fine body…</p>
    <p>One fine body…</p>
    <input class="form-control" type="text" data-tabindex="1">
    <input class="form-control" type="text" data-tabindex="2">
    <button class="btn btn-default" data-toggle="modal" href="#stack2">Launch modal</button>
  </div>
  <div class="modal-footer">
    <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
    <button type="button" class="btn btn-primary">Ok</button>
  </div>
</div>

<div id="stack2" class="modal fade" tabindex="-1" data-focus-on="input:first" style="display: none;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 class="modal-title">Stack Two</h4>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
    <p>One fine body…</p>
    <input class="form-control" type="text" data-tabindex="1">
    <input class="form-control" type="text" data-tabindex="2">
    <button class="btn btn-default" data-toggle="modal" href="#stack3">Launch modal</button>
  </div>
  <div class="modal-footer">
    <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
    <button type="button" class="btn btn-primary">Ok</button>
  </div>
</div>

<div id="stack3" class="modal fade" tabindex="-1" data-focus-on="input:first" style="display: none;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 class="modal-title">Stack Three</h4>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
    <input class="form-control" type="text" data-tabindex="1">
    <input class="form-control" type="text" data-tabindex="2">
  </div>
  <div class="modal-footer">
    <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
    <button type="button" class="btn btn-primary">Ok</button>
  </div>
</div>

Don't forget to add both .js file from the src folder.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Placing columns inside bootstrap modal

From Dev

embed tag inside Bootstrap Modal not visible in FireFox

From Dev

Yii bootstrap submit a form inside a modal window using the modal buttons

From Dev

Full calendar not showing inside bootstrap modal

From Dev

Rendering a form inside a bootstrap modal in Ember

From Dev

Unable to render form inside twitter bootstrap modal?

From Dev

Bootstrap modal window inside another div

From Dev

Using Dropzone.js inside Bootstrap modal

From Dev

Bootstrap popover 'stuck' inside a modal

From Dev

Horizontal scrolling inside Bootstrap modal

From Dev

Accordion inside popup, colorbox / modal Bootstrap

From Dev

AngularJS directives inside Bootstrap Modal not working

From Dev

Bootstrap dropdown doesn't work inside modal

From Dev

Close bootstrap modal if the button is not placed inside modal-body

From Dev

jQuery append() not working inside a bootstrap modal

From Dev

how to fix an element inside bootstrap modal with respect to bootstrap modal

From Dev

Adding and Removing Div inside a Bootstrap modal

From Dev

google map appear with grey inside modal in bootstrap

From Dev

Validating a form placed inside a Angularjs Bootstrap modal

From Dev

Grey Map of Google Maps inside Bootstrap Modal

From Dev

Sweet Alert inside Bootstrap Modal

From Dev

Full calendar not showing inside bootstrap modal

From Dev

Horizontal scrolling inside Bootstrap modal

From Dev

Jquery + Bootstrap Modal, open a modal inside the other... why?

From Dev

Is there a way to use a Bootstrap popover inside a Bootstrap modal?

From Dev

Close bootstrap modal if the button is not placed inside modal-body

From Dev

Why bootstrap modal callback fired when a collapse inside modal is opened

From Dev

Bootstrap modal on another modal

From Dev

Bootstrap Modal - catch link click inside modal?

Related Related

  1. 1

    Placing columns inside bootstrap modal

  2. 2

    embed tag inside Bootstrap Modal not visible in FireFox

  3. 3

    Yii bootstrap submit a form inside a modal window using the modal buttons

  4. 4

    Full calendar not showing inside bootstrap modal

  5. 5

    Rendering a form inside a bootstrap modal in Ember

  6. 6

    Unable to render form inside twitter bootstrap modal?

  7. 7

    Bootstrap modal window inside another div

  8. 8

    Using Dropzone.js inside Bootstrap modal

  9. 9

    Bootstrap popover 'stuck' inside a modal

  10. 10

    Horizontal scrolling inside Bootstrap modal

  11. 11

    Accordion inside popup, colorbox / modal Bootstrap

  12. 12

    AngularJS directives inside Bootstrap Modal not working

  13. 13

    Bootstrap dropdown doesn't work inside modal

  14. 14

    Close bootstrap modal if the button is not placed inside modal-body

  15. 15

    jQuery append() not working inside a bootstrap modal

  16. 16

    how to fix an element inside bootstrap modal with respect to bootstrap modal

  17. 17

    Adding and Removing Div inside a Bootstrap modal

  18. 18

    google map appear with grey inside modal in bootstrap

  19. 19

    Validating a form placed inside a Angularjs Bootstrap modal

  20. 20

    Grey Map of Google Maps inside Bootstrap Modal

  21. 21

    Sweet Alert inside Bootstrap Modal

  22. 22

    Full calendar not showing inside bootstrap modal

  23. 23

    Horizontal scrolling inside Bootstrap modal

  24. 24

    Jquery + Bootstrap Modal, open a modal inside the other... why?

  25. 25

    Is there a way to use a Bootstrap popover inside a Bootstrap modal?

  26. 26

    Close bootstrap modal if the button is not placed inside modal-body

  27. 27

    Why bootstrap modal callback fired when a collapse inside modal is opened

  28. 28

    Bootstrap modal on another modal

  29. 29

    Bootstrap Modal - catch link click inside modal?

HotTag

Archive