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 jquery?
Which program is useful for testing jQuery?
Why is jquery better than javascript?
What is the difference between eq() and get() methods in jQuery?
How we can remove an attribute of an html tag in jquery?
What is the difference between jquery.get() and jquery.ajax()?
Why there are two different version of jQuery library?
Define width() vs css('width')?
Define slidetoggle() effect?
What is the use of .size() method in jquery?
Why is not dom ready working for jquery mobile? : jquery mobile
What is jquery toggle function?