title: Jquery filter URL
body: <p>I think that I am on the right track but I need your help.</p>
  
  <p>I use this code to get my URL parameter</p>
  
  <pre><code> function $urlParam(name){ 
      if(window.location.href.indexOf(name) != -1) {
          var results = new RegExp('[\\?&amp;]' + name + '=([^&amp;#]*)').exec(window.location.href); 
          return results[1] || 0; 
      }
      return 0;
  
  } 
  
  
  $(function() {
  var $page='#'+$urlParam('id');
  
   });
  </code></pre>
  
  <p>And than I tried to filter that data with</p>
  
  <pre><code>$side_menu.find('&gt; li &gt; a').filter($page).click();
  </code></pre>
  
  <p>But this doesn't work. </p>
  
  <p>Is there anything that I can do so I can filter data with $page variable?</p>
  
  <p>If you need any more data I would be glad to provide it to you.</p>
  
  <p>Thank you in advance,
  Prokka</p>