Skip to content
Advertisement

jQuery: Uncaught Error: Syntax error, unrecognized expression

JavaScript

In my HTML, I have:

JavaScript

In the above code, I have one <div> with an id of 2013-10-23, and when getting that id it is throwing this syntax error:

JavaScript

Advertisement

Answer

try

JavaScript

your solution is passing the double quotes as part of the string.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement