javascript - Why is my alert not displaying on page load, but it will display if I do it immediately? -
i have simple script:
$(document).ready(function() { alert("hi"); )};
alert never shows though. if remove document.ready part, load immediately. have idea why?
you've got typo. last line should });
not )};
.
Comments
Post a Comment