Bootstrap 3 - open a modal version from another modal

Is it possible in Bootstrap 3 to open a modal from another modal ? I have modal windows with content loaded from external html files.

  • I open a modal window. There I have a form to submit.
  • After clicking the submit button, I would like to proceed to the next step with a new modal window (and new content from another html file).

As far as I know, you cannot have two modal windows at the same time, so I need to close the first modal and then open the second. The problem is what should I do after clicking the submit button in the first modal mode.

I am trying to use the data-dismiss="modal" attributes with data-toggle="modal" on the submit button, but they hide only the first modal, the background is dark and nothing happens.

+7
javascript jquery twitter-bootstrap modal-dialog bootstrap-modal
source share
1 answer

you can use http://jschr.imtqy.com/bootstrap-modal/bs3.html ; check the stacking example.

+15
source share

All Articles