jQuery not Working. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

jQuery not Working.

Only In my sololearn codes <script src="https://code.jquery.com/jquery-3.1.1.js"></script> Even with the above tag, my Javascript console says "Uncaught ReferenceError: $ is not defined" and the my code doesn't work. What could be missing?

30th Mar 2017, 9:39 AM
_n3m9
_n3m9 - avatar
3 Answers
+ 3
Here is an example: http://stackoverflow.com/a/950146 make sure jQuery is call before your own script.
30th Mar 2017, 10:07 AM
Geoffrey L
Geoffrey L - avatar
+ 1
You have to call jQuery inside <head> tag for Sololearn or include jQuery from your javascript.
30th Mar 2017, 9:54 AM
Geoffrey L
Geoffrey L - avatar
+ 1
How do I include jQuery from JavaScript? Because I have already called it from the head tag and its not working
30th Mar 2017, 9:59 AM
_n3m9
_n3m9 - avatar