title: Modify posted input values on onbegin of ajax.beginform
body: <p>Can posted input values on <code>onbegin</code> of <code>ajax.beginform</code> be modified?
  I have to modify values of some of the input fields after the form is submitted. But even if I change the values through js, at server side in <code>request.form</code> I am getting the old values which were set initially at the time of form submit. How to get the modified values in request.form?</p>
  
  <p>The code block is as follows:</p>
  
  <pre><code>&lt;% using(Ajax.BeginForm("action", "controller",
       new AjaxOptions{onbegin="funBegin",oncomplete="funComplete"})){ 
  %&gt;
  
  &lt;input type="text" id="txtName" name="txtName" value="gaurav"/&gt;
  &lt;input type="text" name="txtAge" value="26"/&gt;
  &lt;input type="submit" value="click here" /&gt;
  
  &lt;% } %&gt;
  
  &lt;script type="text/javascript"&gt;
      function funBegin() {
          $("#txtName").val("gaurav pandey");
      }
      function funBegin(result) {
          $("#divParent").html(result.get_data());
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now when I try to get <code>request.form["txtname"]</code> at server side, I am getting "gaurav" instead of "gaurav pandey".</p>