title: How do I get the fragment identifier (value after hash #) from a URL?
body: <p>Example:</p>
  
  <pre class="lang-none prettyprint-override"><code>www.site.com/index.php#hello
  </code></pre>
  
  <p>Using jQuery, I want to put the value <code>hello</code> in a variable:</p>
  
  <pre><code>var type = …
  </code></pre>