title: jQuery: Uncaught Error: Syntax error, unrecognized expression
body: <pre class="lang-js prettyprint-override"><code>console.log($('&quot;#'+d+'&quot;'));
  </code></pre>
  <p>In my HTML, I have:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div id=&quot;2013-10-23&quot;&gt;
      &lt;h1&gt;5&lt;/h1&gt;
      &lt;p&gt;eeeeeeeeeeee&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>In the above code, I have one <code>&lt;div&gt;</code> with an <code>id</code> of <code>2013-10-23</code>, and when getting that <code>id</code> it is throwing this syntax error:</p>
  <blockquote>
  <pre><code>Uncaught Error: Syntax error, unrecognized expression: &quot;#2013-10-23&quot;
  </code></pre>
  </blockquote>