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
What are the selectors in jquery? How many types of selectors in jquery?
How to delete cookies in jquery?
Is jquery a library for client scripting or server scripting? : jquery mobile
How to use css() in jquery?
What are the different types of selectors?
How does the jQuery pushStack function work?
Tell me does jquery 2.0 supports ie? : jquery mobile
How to programmatically trigger a click event thats being handled by jquery only?
What are the different ways of using $.connect function in jquery?
Explain the use jquery.data method?
How do you stop the currently-running animation? : jquery mobile
Why is only the first page of multi page document loaded? : jquery mobile
List the basic selectors in jquery?
How to use connect in jquery?
Is numeric in jquery?