+ 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
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>
+ 8
You didn't add jquery url to your code yet 😑
+ 4
I don't know jQuery can you fix this
+ 4
thanks both of you to fix this problem 😀
+ 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>