You get "jquery is not defined" or "$ is not defined" error. What could be the reason?
Answer Posted / chaitanya
There could be many reasons for this.
You have forgot to include the reference of jQuery library and trying to access jQuery.
You have include the reference of the jQuery file, but it is after your jQuery code.
The order of the scripts is not correct. For example, if you are using any jQuery plugin and you have placed the reference of the plugin js before the jQuery library then you will face this error.
Find out more here.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the types of selectors in jquery?
What is jquery.length? : jquery mobile
What does dollar sign ($) means in jquery? : jquery mobile
Can you write a code to select all links inside the paragraph?
What is difference between sorting string array and sorting numerical array in jquery?
Where can we download JQuery?
Which is the fastest selector in jQuery?
Why use jQuery filter() Methods?
What is the purpose of fadetoggle() method in jquery?
How to use connect in jquery?
How can jquery be used in conjunction with another javascript library that also uses $ for naming?
Explain the difference between .empty() and .remove() ?
Name some of the methods of jquery used to provide effects?
Explain the each() function?
Write a basic jquery code?