0

I'm running a simple code provided by jQuery UI that is used in a simple draggable tutorial. and I get this error:

drag.php:15 Uncaught ReferenceError: $ is not defined(anonymous function) @ drag.php:15

Why am I getting this error when I am adding the library before the function? and How do I fix it?

Screenshots of both the code and my directory where is store my libraries are attached.

Directory for Libraries

Code Used

Hunter Turner
  • 6,804
  • 11
  • 41
  • 56

1 Answers1

1

Are you sure the path starts on public directory? If you're using chrome, the network tab on DevTools will show you if the .js file has been loaded.

André Senra
  • 1,875
  • 2
  • 11
  • 13