[英]Bootstrap Modal Pop up not firing
So I am working a web project and hoping to use Bootstrap Modal Pop up. 因此,我正在一个Web项目中,希望使用Bootstrap Modal Pop up。 I implemented the codes but unfortunately my modal wont fire.
我执行了代码,但不幸的是我的模态态不会开火。 I am using Visual Studio 2012 by the way.
我正在使用Visual Studio 2012。
I have included the following: 我包括以下内容:
<script src="jquery/jquery-ui-1.10.4.custom.min.js"></script>
<script src="jquery/bootstrap.js"></script>
Here is my trigger for the modal: 这是我的模态触发器:
<asp:Button ID="btnAddEvent" data-toggle="modal" data-target="#myModal" class="btn btn-default" runat="server" Text="Add Event" />
And here is my modal: 这是我的模态:
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
include the jQuery script before the bootstrap.js script file for the plugin to work. 在bootstrap.js脚本文件之前包含jQuery脚本,以使插件正常工作。
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
jquery/jquery-ui-1.10.4.custom.min.js jquery/bootstrap.js jquery / jquery-ui-1.10.4.custom.min.js jquery / bootstrap.js
typo error 'jquery' folder or 'js' folder 错字错误“ jquery”文件夹或“ js”文件夹
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.