title: Getting URL hash location, and using it in jQuery
body: <p>I'd like to get the value after a hash in the URL of the current page and then be able to apply this in a new function... eg.</p>
  
  <p>The URL could be</p>
  
  <pre><code>www.example.com/index.html#foo
  </code></pre>
  
  <p>And I would like to use this in conjunction with the following piece of code</p>
  
  <pre><code>$('ul#foo:first').show();
  </code></pre>
  
  <p>I'm kinda assuming/hoping there is some way of grabbing this, and turning it into a variable that I can then use in the second piece of code.</p>