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 the use of jQuery.data() method?

0 Answers  


What is the use of each function in jQuery?

0 Answers  


How does jquery mobile theming work? : jquery mobile

0 Answers  


Explain various methods to make ajax request in jquery?

0 Answers  


Whether we need to add jQuery file in both Master and Content page?

0 Answers  






What is the use of param() method?

0 Answers  


How to check or uncheck all checkboxes using jquery?

0 Answers  


How does jquery store data related to an element?

0 Answers  


How do you disable or enable a form element?

0 Answers  


What is the latest version of jquery?

0 Answers  


Can we call C# code behind using jQuery?

0 Answers  


What are jquery selectors?

0 Answers  


Categories