0

$ is not defined. [ERROR]

Whenever I run html css js on mbil having $ in js It always shows me the error I mentioned in title. But it works fine when I run it on Web Browser either in sololearn or somewhere else.

10th Nov 2020, 8:18 PM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar
9 Answers
+ 2
Could you show us your code where that error happens? Maybe you forgot to define $ If you are not using jquery, that can happen.
10th Nov 2020, 8:20 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Add the ajax script link to your head tag. refer this:https://www.w3schools.com/jquery/jquery_get_started.asp Hope it may help.
11th Nov 2020, 5:01 AM
Shaili Shah
Shaili Shah - avatar
0
Wait let me share the link
10th Nov 2020, 8:20 PM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar
0
remove the type in the script , (type="text/javascript")
10th Nov 2020, 10:07 PM
Med Amine Fh
Med Amine Fh - avatar
0
Not working.
11th Nov 2020, 4:59 AM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar
0
It is giving error from the js portion
11th Nov 2020, 4:59 AM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar
0
Not html portion
11th Nov 2020, 4:59 AM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar