+ 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?
3 ответов
+ 3
Here is an example: http://stackoverflow.com/a/950146 make sure jQuery is call before your own script.
+ 1
You have to call jQuery inside <head> tag for Sololearn or include jQuery from your javascript.
+ 1
How do I include jQuery from JavaScript?
Because I have already called it from the head tag and its not working