Trying to find the attribute value from a url hash.
// URL
http://url.com/index.html#link
// HTML
<a href="#link" rel="3">Some link</a>
// 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
All help appreciated. Thanks :)