title: How to get multiple values from jquery hash
body: <p>How can i get multiple values in a jquery hash?</p>
  
  <p>Example:</p>
  
  <p><a href="http://mysite.com/#l:value&amp;v:id1212" rel="nofollow">http://mysite.com/#l:value&amp;v:id1212</a> same as but without page refresh <a href="http://mysite.com/?l=value&amp;v=id1212" rel="nofollow">http://mysite.com/?l=value&amp;v=id1212</a></p>
  
  <p>I thought something like:</p>
  
  <pre><code>var hash = location.hash.replace(/^.*?#/, '');
  
  var lVal = (/^l:/.test( hash ));
  var vVal = (/^v:/.test( hash ));
  </code></pre>
  
  <p>but how can i fix that var lVal only reads untill the &amp; sign?
  Am i on the right direction?</p>