Uncaught SyntaxError: Unexpected Token - jQuery - Help!

Please help me sort this out ... the only file this error points to is my jQuery file.

See the error I get here. enter image description here

How to find a line in a file that throws this error?

Edit2: Here is a screenshot after Nathan's suggestion to replace .js with .html or nothing at all: enter image description here

+6
jquery
source share
2 answers

If you look at the data property specified in the debugger on the right, it looks like you are trying to eval () some HTML code like JavaScript. My assumption is that your AJAX request presents an HTML error or points to an invalid URL, rather than returning JS.

+4
source share

The entire file throws an error.

You are trying to execute some HTML as Javascript code.

0
source share

All Articles