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 |
What is jquery selectors?
List browser related issues for jquery?
Name some of the methods of jquery used to provide effects?
Can we select a element having a specific class in jquery ?
What is jQuery UI?
What does $("div") will select?
What is a jquery ?
How to debug jQuery?
Which is the starting point of code execution in jQuery?
What are selectors in jquery?
Tell me what does $("div") will select? : jquery mobile
What is the use of jQuery load method?