title: Append programmatically current anchor/hash/fragment to any form action url with Javascript/jQuery
body: <p>I have a <code>JSP</code> with some external API custom <code>taglibs</code> that handle URLs with <code>hash</code> (I know serverside does not handle them per se).</p>
  
  <p>I am trying something like this</p>
  
  <pre><code>$(document).ready(function(){
      $('form').prop('action').append(window.locator.anchor)
  });
  </code></pre>
  
  <p>But I am doing it wrong and I am not sure if it is the best way anyway. Could you help me?</p>