+ 1

Uncaught ReferenceError: $ is not defined (javascript)

I executed my code and and it displayed the error " Uncaught ReferenceError: $ is not defined" in line 7. This is the entire code on line 7 ""------ $("next").click(function(){ if(animating) return false; animating = true; ------"" is there anything wrong. help needed. you can find it here https://code.sololearn.com/WEN9i555M8Ql/#html

20th Oct 2017, 12:33 PM
Prince Takyi Akomea
Prince Takyi Akomea - avatar
2 Respostas
+ 3
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> Add this inside head tag
20th Oct 2017, 12:36 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
Thanks Kartikey Sahu. I've got a little problem. The slide is not working to.. If you save and execute it in a normal browser it works fine but it doesn't run properly on sololearn
20th Oct 2017, 12:51 PM
Prince Takyi Akomea
Prince Takyi Akomea - avatar