javascript - jQuery document.ready will not fire but window.load will -
i have jquery loaded in head section of page. trying run short script before closing body tag.
$(window).load
= code inside fires.
jquery(document).ready
= code not fire. have tried simple alert box, , still nothing fires.
i not sure doing wrong. chances simple or typo, need second pair of eyes @ because not finding it. thanks.
page jquery: http://sevenclanscasino.designangler.com/warroad/warroad-home
jquery:
jquery(document).ready(function() { alert('this code fired!'); // function pops search box when "search" menu item clicked on. $('li.search').click(function(event){ if (event.target.tagname == "a"){ $('#search-box-container').toggle("fast"); } }); });
Comments
Post a Comment