question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Syntax error, unrecognized expression:

See original GitHub issue

There is a problem with parsing html from ajax content,

Console return

Uncaught Error: Syntax error, unrecognized expression: <my html ...>

to avoid this situation you should replace

data:data,

with:

data: $.parseHTML(data),

in line 1033

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
texelatecommented, Mar 27, 2017

Or if you get this error on inline content it could be because you’ve simply put # in the href attribute.

0reactions
absentiocommented, Jan 26, 2019

Sorry for reopening this thread after a while. I have a similar problem but in my case I am using inline mfp. The problem arises when I use a mobile device. Could you help me? @texelate

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery: Uncaught Error: Syntax error, unrecognized expression
Here It shows how to do that in Jquery's error dump. In my case id was empty and $("#" + id); ; produces...
Read more >
JQuery Syntax Error Unrecognized Expression - Kevinleary.net
This error occurs when you are trying to select something with an invalid selector. jQuery 2.x and 3.x handle Sizzle related errors differently ......
Read more >
Uncaught Error: Syntax error, unrecognized expression
Hello everyone, I'm using jQuery v3.3.1 and I have a drad and drop function that is giving some users an error which i...
Read more >
Jquery error Uncaught Error: Syntax error, unrecognized ...
I added the following line to my JS code that runs with the app, and it seems to fix the issue: shinyBS.inputBindings.modal.initialize = ......
Read more >
How to fix error "Syntax error, unrecognized expression
Hi,. I'm working with Traditional web app OS11 and I'm having a problem, hope you guys can help me fix it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found