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 |
Tell me is jquery a library for client scripting or server scripting? : jquery mobile
How can we show and hide an element via jquery?
What is the difference between prop and attr?
Define jquery $.ajax() method?
How can jquery library be added to pages?
How to keep the submit text from showing with jquery mobile? : jquery mobile
Why is only the first page of multi page document loaded? : jquery mobile
What are various methods to make ajax request in jQuery?
How to run an event handler only once in jQuery?
What are selectors in jquery? Explain
What is a cdn? What are the advantages of using cdn?
Explain cdn? : jquery mobile