title: jQuery find attribute from url hash
body: <p>Trying to find the attribute value from a url hash.</p>
  
  <pre><code>// URL
  http://url.com/index.html#link
  
  // HTML
  &lt;a href="#link" rel="3"&gt;Some link&lt;/a&gt;
  
  // JS
  var anchor = window.location.hash.substring(1);
  // Need help finding attribute value from finding the anchor
  var attribute = .find('#+anchor').attr('rel'); //this needs to have a value of 3
  </code></pre>
  
  <p>All help appreciated. Thanks :)</p>