Wednesday, 15 June 2011

javascript - Jquery Custombox 404 Error -



javascript - Jquery Custombox 404 Error -

having issue 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');">&times;</button> <h4>warning: dear visitor</h4> </div> <div> <p>you have blah blah</p> </div> </div> <!-- end modal content -->

i have html element id=show trigger modal box keeps giving me error 404. if add together in url: '#modal', shows not properly.

try this

<a href="#modal" id="show">open modal window</a>

javascript jquery

No comments:

Post a Comment