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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

javascript - addthis share facebook and google+ url -

java - Simulate the tossing of a coin three times and print out the percentage of cases in which one gets three tails -