title: using jquery submit ($.submit) how to modify the form values before submit?
body: <p>In my form I want to remove some special characters like space, if entered by user, before I submit the form. I clearly did this by following way . </p>
  
  <pre><code>$('input[type="text"]').each(function()
  {
          var modifiedval=$(this).val().replace(//regexpr to remove the specialchar);
          $("#"+$(this).attr("id")).val(modifiedval);
   });
   $("form#myform").submit();
  </code></pre>
  
  <p>Only issue is, when the form submit, doing some actions in the backend. It takes some times to post. So when remove the special characters the user got idea the special characters are removed.</p>
  
  <p>I want to hide this action. So I did the <code>$.post</code> method to post the form after modify the serialize data. It also works good. </p>
  
  <p>But the URL doesn't goes to the action page. Because it did in ajax. But I want to go the action page along with the modified data like submit. Is it possible in jQuery with modified data submit.</p>
  
  <p>1) My point to achieve - the user must not see the modified value before form submit but needs to post the modified data to backend. </p>
  
  <p>Note: I can't change the action page which was already developed.</p>
  
  <p>Thanks in advance.</p>