Bootstrap 3 - open modal from another modal(Bootstrap 3 - 从另一个模式打开模式)
问题描述
是否可以在 Bootstrap 3 中从另一个模式打开模式?我有从外部 html 文件加载内容的模态窗口.
Is it possible in Bootstrap 3 to open modal from another modal? I have modal windows with content loaded from external html files.
- 我正在打开模式窗口.我有一个表格要提交.
- 单击提交按钮后,我想使用新的模式窗口(以及来自另一个 html 文件的新内容)进入下一步.
据我所知,您不能同时拥有两个模态窗口,因此我必须关闭第一个模态窗口,然后再打开第二个模态窗口.问题是我必须在点击第一个模式中的提交按钮后做.
As far as I know you can't have two modal windows simultaneously, so I have to close the first modal and then open the second one. The problem is I have to do after clicking the submit button in the first modal.
我尝试在提交按钮上使用 data-dismiss="modal"
和 data-toggle="modal"
属性,但它们只隐藏第一个模态,背景仍然很暗,没有任何反应.
I've tried to use the data-dismiss="modal"
with data-toggle="modal"
attributes on the submit button but they only hide the first modal, the background in still dark and nothing happens.
推荐答案
你可以使用http://jschr.github.io/bootstrap-modal/bs3.html 为此;检查可堆叠示例.
you can use http://jschr.github.io/bootstrap-modal/bs3.html for that; check stackable example.
这篇关于Bootstrap 3 - 从另一个模式打开模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Bootstrap 3 - 从另一个模式打开模式


基础教程推荐
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01