Possible Duplicate:
Difference between single quotes and double quotes in Javascript
I have a doc in the id attribute of a HTML tag:
I read the jQuery dot in ID selector? and http://api.jquery.com/category/selectors/ and I realize that I should add a 2 backslashes in order to escape the ".".
The problem is when I use $('#Q0\\.3')
, it works.
But when I use $("#Q0\\.3")
, jQuery does not find the element.
I thought that double-quotes and single-quote in jQuery stand for the same thing, was I wrong?
Thanks.