+ 7

What wrong happen in this code ?

i am unable to understand why it is not working please suggest me where is the error and how i can fix. here is the code https://code.sololearn.com/WEDp4iMcK4Vi/#html

21st Sep 2017, 1:18 PM
Rahul Roy
Rahul Roy - avatar
5 ответов
+ 9
replace your HTML code by :- <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.1.1.js"></script> </head> <body> <canvas id="canvas"></canvas> </body> </html>
21st Sep 2017, 1:32 PM
RZK 022
RZK 022 - avatar
+ 8
You didn't add jquery url to your code yet 😑
21st Sep 2017, 1:30 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 4
I don't know jQuery can you fix this
21st Sep 2017, 1:32 PM
Rahul Roy
Rahul Roy - avatar
+ 4
thanks both of you to fix this problem 😀
21st Sep 2017, 1:34 PM
Rahul Roy
Rahul Roy - avatar
+ 3
You used $(document).ready without adding jQuery plugin in your HTML. and your HTML is not having head & body tags. Change it as below: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> </head> <body> <canvas id="canvas"></canvas> </body> </html>
21st Sep 2017, 1:40 PM
SaRaVaNaN.N
SaRaVaNaN.N - avatar