title: jQuery: unrecognized expression
body: <pre><code>$(document).ready(function(){
  
      var page = window.location.hash;
      if(page != ""){
          $('a[href='+ page +']').addclass('selected');
          pageload(page.replace('#/page/', 'pages/?load='));
      }
  
      $('#top a').click(function(event){  
          $('#top a').removeClass('selected');
          $(this).addClass('selected');
  
          pageload($(this).attr('href').replace('#/page/', 'pages/?load='));
  
          event.preventDefault;
      });
  });
  </code></pre>
  
  <p>&nbsp;</p>
  
  <pre><code>&lt;div id="top"&gt;
      &lt;a href="#/page/link"&gt;Link&lt;/a&gt;
      &lt;a href="#/page/link"&gt;Link&lt;/a&gt;
      &lt;a href="#/page/link"&gt;Link&lt;/a&gt;
      &lt;a href="#/page/link"&gt;Link&lt;/a&gt;
      &lt;a href="#/page/link"&gt;Link&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So when i'm trying to do this, and load up a page using the <code>window.location.hash</code>, i get an error in the console saying:</p>
  
  <blockquote>
    <p>Uncaught Error: Syntax error, unrecognized expression:
    [href=#/page/link]</p>
  </blockquote>
  
  <p>How can i make this work? </p>