Jquery Custombox 404 Error
Jquery Custombox 404 Error
jquery custombox 1.13出现问题
<script src="scripts/jquery.custombox.js"></script>
<script>
$(function () {
$('#show').on('click', function ( e ) {
$.fn.custombox( this, {
effect: 'fadein',
});
e.preventDefault();
}).trigger('click');
});
</script>
HTML: <!-- Start Modal Content -->
<div id="modal" style="display: none;">
<div>
<button type="button" class="close" onclick="$.fn.custombox('close');">×</button>
<h4>WARNING: Dear Visitor</h4>
</div>
<div>
<p>You have blah blah</p>
</div>
</div>
<!-- End Modal Content -->
我有一个html元素id=show的触发器,但模态框一直给我错误404。如果我添加url: '#modal'
,它显示但不正确。
try this
<a href="#modal" id="show">Open modal window</a>
相关文章:
- jQuery Error adadvisor.net
- Ajax调用ERror Cross Origin REquest:在rails中自动完成大学列表
- 类型error primeFactors.for不是函数
- Array.every返回false,而不是类型error
- datatables.net ajax error - http://datatables.net/tn/7
- Error: timers.js:234 callback.apply(timer, args);
- 滚动到错误字段ERROR
- Error with xmlhttpresponse
- ajax javascript 500 error
- 将数据从ExpressJS发送到AngularJS ERROR json
- walkscore API JSON error
- STRIPE.JS Error
- Angular Routing Pretty URL Error
- 节点回调参数无法断言instanceof Error
- Jasmine .calls.count and .calls.any throwing error
- React.render error
- 如何访问npm模块抛出的自定义错误对象[error:[object object]]
- grunt contrib jshint-error在定义之前就已经使用过了
- Javascript getElementById null error
- Jquery Custombox 404 Error