title: jQuery removing hash value from URL
body: <p>I have a hard coded URL like so:</p>
  
  <pre><code>https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&amp;productPolicyId=7841#a1
  </code></pre>
  
  <p>When Javascript is enabled i don't want the hash value on the end so how do i remove it?</p>
  
  <p>When Javascript is disabled it needs to be present.</p>
  
  <p>Thanks.</p>
  
  <h2>EDIT</h2>
  
  <p>Here is the AJAX jQuery that i am using.  So i am pasisng the hard coded URL to the same page on the server and retrieving a table from it:</p>
  
  <pre><code>        // Find href of current tab
      var $tabValue = $(this).attr('href');
  
      // AJAX new table in
      $.ajax({
          type: "GET",
          cache: false,
          url: $(this).attr('href'),
          success: function(data){
  
          // Find benefit wrap
          $(data).find('.benefitWrap').each(function(){
              // get the contents
              var $benefitWrap = $(this).html();
              // replace contents on page
              $('.benefitWrap').replaceWith($('&lt;div class="benefitWrap"&gt;' + $benefitWrap + '&lt;/div&gt;'));
  
          });
  
         }
  
      });
  </code></pre>