Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
140
rated 0 times [  147] [ 7]  / answers: 1 / hits: 90563  / 14 Years ago, thu, february 3, 2011, 12:00:00

Possible Duplicate:

ReferenceError: Can’t find variable: $






I get this error:




ReferenceError: Can't find variable: $




Any ideas?


More From » jquery

 Answers
2

Is the jquery javascript file loaded before you call anything with it -> using the selector $?
Please check with Chrome or Firefox+firebug if the jquery library is loaded correctly. Maybe the path could be not correct



After that, try to place your code into:



$(document).ready(function() {
// put all your jQuery goodness in here.
});


This will make sure that '// put all your jQuery goodness in here.' will be executed after jQuery has been loaded.


[#93916] Wednesday, February 2, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tierney

Total Points: 45
Total Questions: 101
Total Answers: 94

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;