本文介绍了防止引导模式窗口在表单提交时关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是第一次使用Bootstrap,点击提交按钮后,我的模式表单无法保持打开状态。
我已经搜索过了,但是所有相关问题都处理了稍有不同的问题(下面的示例)。

Hi I'm using Bootstrap for the first time and I can't get my modal form to stay open on clicking the submit button.I've searched SO but all related questions deal with slightly different issues (example below).

推荐答案

查看=>

使用

data-backdrop="static"

$("#yourModal").modal({"backdrop": "static"});

Edit1:

打开链接您的模态==>

on your link opening your modal ==>

<a href="#" onclick="$('#yourModal').modal({'backdrop': 'static'});" class="btn btn-primary">yourModal</a>

Edit2:

这篇关于防止引导模式窗口在表单提交时关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 23:42
查看更多