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 the difference between the id selector and class selector in jquery?
How to executed jquery selectors? : jquery mobile
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
What is the between $(this) and 'this' in jquery?
What is the difference between "#" and "." selector in JQuery?
How can we debug jQuery?
How to check variable is empty or not in jquery?
What is the use of jQuery.ajax method ()?
Explain cache paremeter of jquery ajax method?
How to keep the submit text from showing with jquery mobile? : jquery mobile
What does dollar sign ($) means in jquery? : jquery mobile
Please explain remove class jquery with example?