title: Using jQuery to append URL with anchor #
body: <p>While retrieving items via AJAX etc., the links are set to do this:</p>
  
  <pre><code>$(this).click(function(){
  ajax_function(); // hypothetical ajax call that puts data into a &lt;div&gt; of my choice
  return false;
  });
  </code></pre>
  
  <p>In this scenario, I'm wondering what the best way is to utilize jQuery to add things to my URL in this format:</p>
  
  <p><a href="http://www.mydomain.com/products" rel="nofollow">http://www.mydomain.com/products</a></p>
  
  <p>turns into</p>
  
  <p><a href="http://www.mydamain.com/products#category-12,page-4" rel="nofollow">http://www.mydamain.com/products#category-12,page-4</a></p>
  
  <p>Further note- I'm talking about the actual URL of the browser (in the URL bar) not a URL that is part of the DOM. </p>