You get "jquery is not defined" or "$ is not defined" error. What could be the reason?
Answer / 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 |
Why do we use jquery? : jquery mobile
Is jQuery replacement of Java Script?
Define "beforesend(xhr)" paremeter of jquery ajax method?
How can jquery be used in conjunction with another javascript library that also uses $ for naming?
Tell me how to write browser specific code using jquery? : jquery mobile
Explain some benefits of jquery knockout?
What is a filter in jquery? Explain
How to find all sibling elements in front of the current element using ?
Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?
Which is the latest version of jQuery library?
Define jquery $.ajax() method?
What is meant by a deep copy? : jQuery Mobile