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 how to select combobox select value and text using jquery?
How do you attach a event to element which should be executed only once?
Explain the difference between event.preventdefault and "return false"? : jquery mobile
How to load jQuery locally when CDN fails?
Explain cache paremeter of jquery ajax method?
What is jquery mobile theming? : jquery mobile
Difference between prop() and attr()? : jQuery Mobile
What are the different type of selectors in jquery?
How can you get the type of arguments passed to a function?
Describe the two types of cdns?
What are the advantage of using cdn? : jquery mobile
Write a code for the implementation of a module pattern.