Possible Duplicate:
ReferenceError: Can’t find variable: $
I get this error:
ReferenceError: Can't find variable:
$
Any ideas?
Possible Duplicate:
ReferenceError: Can’t find variable: $
I get this error:
ReferenceError: Can't find variable:
$
Any ideas?
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.
` tag) the document ready function is unnecessary.
– Wallace Sidhrée Sep 10 '13 at 17:59