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
Explain the use of data-role=”page” attribute? : jQuery Mobile
Define url paremeter of jquery ajax method?
Can you please explain the difference between javascript and jquery? : jquery mobile
How can we add change font size using jquery?
Difference between find() and closest() in jquery?
Difference between detach and remove? : jQuery Mobile
explain width() vs css(‘width’) in jquery
Explain the difference between .js and .min.js? : jquery mobile
Differentiate the concepts of .js and .min.js?
Explain animate function in jquery?
What is cdn? Explain
What is the difference between size and length of jQuery?
Explain chaining in jquery? : jquery mobile
What is .detach()? : jquery mobile
What is CDN?