3 Ways to Fix "jquery is not defined"
You've just stumbled into one of the most common jQuery pitfalls. The "jquery is not defined" error is a JavaScript ReferenceError that occurs when your script tries to use jQuery functions or methods, but the jQuery library is not properly loaded or initialized. How did this happen? Probably one of three reasons: Let’s start with the last reason as that’s the easiest to fix.