码迷,mamicode.com
首页 > 其他好文 > 详细

data-dismiss="modal"

时间:2020-01-16 19:14:08      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:method   for   normal   mis   dism   bin   cti   dal   div   

提交按钮不加:

技术图片

 

 加上则不会出现提示,直接关闭弹出框

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog " role="document">
        <div class="modal-content">
            <div class="modal-header" style="background-color: #dedede">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">ADD</h4>
                <div class="modal-body">
                    <form id="addForm" onsubmit="return false" action="#" method="post" style="width: 70%">
                        <div class="form-group">
                            <label for="Provider" class="form-inline" style="font-weight:normal">Provider
                                <input type="text" name="UserName" id="Provider" style="width:14.2em;" class="form-control" required="required" placeholder="NOT NULL" onblur="checkIsNull(this)checkName()">
                                <div id="roName" style="color: #843534;display: inline;"></div>
                            </label>
                        </div>
                        <div class="form-group">
                            <label for="Status"  class="form-inline" style="font-weight:normal">&nbsp;&nbsp;&ensp;Status
                                <select id="Status" class="form-control"  style="width:14.2em;">
                                    <option th:each="status : ${statusList}" th:text="${status.name}" th:value="${status.value}"></option>
                                </select>
                            </label>
                        </div>
                        <div class="modal-footer">
                            <button type="submit" id="btn_submit" onclick="addRole()" class="btn btn-success"
                                    >Ok
                            </button>
                            <button type="button" class="btn btn-danger" data-dismiss="modal">Close
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

data-dismiss="modal"

标签:method   for   normal   mis   dism   bin   cti   dal   div   

原文地址:https://www.cnblogs.com/hpwd/p/12202464.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!