title: Change URL before form submit
body: <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form id="form" method="post" action="/create_test1/54ae2be44a1bfef3138b4569"&gt;
  .
  .
  .
  &lt;input type="button" id="export" value="Export"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>$("#export").click(function(){
    url = $("#form").attr("action");
    url = url.replace("create_test1","export_test1"); // This is OK
    $('#form').attr('action', url).submit();  //Here form is not submited
  });
  </code></pre>
  
  <p><strong>Actual URL</strong> : /create_test1/54ae2be44a1bfef3138b4569</p>
  
  <p><strong>I want URL</strong> : /export_test1/54ae2be44a1bfef3138b4569</p>
  
  <p>My Question is How to submit form after changing action?</p>