javascript - Why doesn't my JQuery code work? -
I have some code that does not seem to work. I would have thought that it should give me instant scrolls immediately, but no. Can anyone tell me what is wrong with it?
$ (document) .ready (function () {$ (document) .scroll (function () {alert ("hi!");)}}}); Syntax error with bracket line 4 - Correct code:
$ (document) .ready (function () {$ (document) .scroll (function () {alert ("hi!");});});
Comments
Post a Comment