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 |
How to divide a page into parts using jquery mobile? : jquery mobile
Explain type paremeter of jquery ajax method?
Change the url for a hyperlink using jquery?
What are the different types of selectors?
Tell me do I need to add the jquery file both at the master page and content page as well?
What is jquery.length? : jquery mobile
Differentiate between calling stop (true, true) and finish method?
How do you attach a event to element which should be executed only once?
How do you update ajax response with id " resilts"?
What is queue() in jquery?
Is window.onload is different from document.ready()?
Why jquery?