+ 2

In jquery what is uncaught reference error $ is not defined

please tell me how to fix it

14th Jan 2018, 5:06 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
8 Answers
+ 9
The error means "
quot; symbol was not defined. if you did not load the jquery script this error happens. Include the below script inside the head tag of your html. it will load properly <script src="https://code.jquery.com/jquery-3.2.1.min.js"> https://www.sololearn.com/discuss/691752/?ref=app
14th Jan 2018, 5:18 AM
Lord Krishna
Lord Krishna - avatar
+ 7
Your javascript code loads before your script. that's why "
quot; is undefined. Wrap your entire Javascript code like below it will work correctly window.onload = function(){ // your entire js code } https://code.sololearn.com/WwW56dK9MsDC/?ref=app
14th Jan 2018, 8:10 AM
Lord Krishna
Lord Krishna - avatar
+ 5
you should do something like <script src="jquery/,link" ></script> before you can use it
14th Jan 2018, 5:19 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
did you included the jQuery Library???
14th Jan 2018, 5:12 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
then you need to show your code..
14th Jan 2018, 6:46 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
@lord Krishna thanks
14th Jan 2018, 8:12 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
+ 1
@sami Khan yes I included that
14th Jan 2018, 6:40 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar
14th Jan 2018, 7:39 AM
Subrahmanya Mayya
Subrahmanya Mayya - avatar