对象不支持此属性或方法 - jquery 简单模式弹出窗口
我的代码运行如下,
<script src="../../Content/js/jquery.simplemodal.js" type="text/javascript"> </script>
<script src="../../Content/js/jquery.js" type="text/javascript"></script>
<script src="../../Content/js/basic.js" type="text/javascript"></script>
<link href="../../Content/css/basic.css" rel="stylesheet" type="text/css" />
<link href="../../Content/css/basic_ie.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
function Add(id) {
$.ajax({
type: "POST",
url: "/Home/Details",
data: { Id: id },
success: function (result) {
$.modal(result);
},
error: function (req, status, error) {
alert(error + req + status);
}
});
}
按钮单击触发此 Add javascript 方法,但不会在模式弹出窗口中打开页面。帮助解决这个问题。
My code runs as follows,
<script src="../../Content/js/jquery.simplemodal.js" type="text/javascript"> </script>
<script src="../../Content/js/jquery.js" type="text/javascript"></script>
<script src="../../Content/js/basic.js" type="text/javascript"></script>
<link href="../../Content/css/basic.css" rel="stylesheet" type="text/css" />
<link href="../../Content/css/basic_ie.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
function Add(id) {
$.ajax({
type: "POST",
url: "/Home/Details",
data: { Id: id },
success: function (result) {
$.modal(result);
},
error: function (req, status, error) {
alert(error + req + status);
}
});
}
The button click triggers this Add javascript method, But doesnt open the page in the modal pop up. Help in solving this issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
jQuery.simplemodal.js 需要在 jQuery.js 之后加载
jQuery.simplemodal.js needs to be loaded after jQuery.js