You get "jquery is not defined" or "$ is not defined" error. What could be the reason?



You get "jquery is not defined" or "$ is not defined" error. What could be the r..

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

Post New Answer

More jQuery Interview Questions

What is jquery selectors?

0 Answers  


List browser related issues for jquery?

0 Answers  


Name some of the methods of jquery used to provide effects?

0 Answers  


Can we select a element having a specific class in jquery ?

0 Answers  


What is jQuery UI?

2 Answers  






What does $("div") will select?

1 Answers  


What is a jquery ?

0 Answers  


How to debug jQuery?

0 Answers  


Which is the starting point of code execution in jQuery?

1 Answers  


What are selectors in jquery?

0 Answers  


Tell me what does $("div") will select? : jquery mobile

0 Answers  


What is the use of jQuery load method?

0 Answers  


Categories