title: Uncaught Error: Syntax error, unrecognized expression: ?tab=month
body: <p>I placed bootstrap tabs on my page, and is trying to active one dynamically from js. Here's an example:</p>
  
  <pre><code>&lt;ul class="nav nav-tabs"&gt;
  &lt;li class="active"&gt;&lt;a href="?tab=day"&gt;Hot&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="?tab=week"&gt;Week&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="?tab=month"&gt;Month&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;script&gt;
      $(function () {
        $('.nav-tabs a[href="\\?tab\\=month"]').tab('show');
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But I always got:</p>
  
  <blockquote>
    <p>Uncaught Error: Syntax error, unrecognized expression; ?tab=month</p>
  </blockquote>
  
  <p>from jQuery (v1.7.1).</p>
  
  <p><strong>Edit:</strong>
  I created a <a href="http://jsfiddle.net/v4wNa/" rel="nofollow">fiddle</a>.</p>