Uncaught Referenceerror: $ is not defined even with import

Asked

Viewed 25 times

1

It has already happened in other pages (of the same project) and I was able to solve by downloading a file and importing

<script src="../JavaScript/jquery-2.1.3.min.js" type="text/javascript"></script>

In other pages works perfectly, but this keeps giving this error.

  • you remembered to import jquery before other scripts tags ?

  • 2

    Probably the error is happening because you are using relative paths. So try importing jQuery absolutely. For example: http://localhost/JavaScript/jquery-2.1.3.min.js.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.