title: Editor value set in jQuery not passed to controller
body: <p>As the title suggest, I am setting the value of a field using jQuery but on submit, that value is not passed to my controller.</p>
  
  <p><strong>What I have done</strong></p>
  
  <p>Part of view</p>
  
  <pre><code> &lt;div class="controls controls col-md-10"&gt;
    @Html.EditorFor(model =&gt; model.itemValue, new { htmlAttributes = new { @class = "form-control", @onChange = "calRealAmt()" } })
    &lt;/div&gt;
  
  ...
  
  
  &lt;div class="control-group"&gt;
           &lt;label class="control-label col-md-6"&gt;Amount&lt;/label&gt;
                &lt;div class="controls col-md-10"&gt;
       @if (String.Equals((string)ViewBag.fixedAmount, "Y"))
           {
                  //disale the amount field
        @Html.EditorFor(model =&gt; model.amount, new { htmlAttributes = new { @class = "form-control", disabled = "disabled" } })
        @Html.HiddenFor(model =&gt; model.amount)
       }
       else
        {
        @Html.EditorFor(model =&gt; model.amount, new { htmlAttributes = new { @class = "form-control spinner" } }) }
        @Html.ValidationMessageFor(model =&gt; model.amount, "", new { @class = "text-danger" })
            &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>Jquery </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      function calRealAmt() {
          var itemValue = $("#itemValue").val();
          var ivDiv;
          var Ans;
          var calPer = $("#calPer").val(); 
          ivDiv = calPer / 100; 
          Ans = itemValue * ivDiv; 
  
          $("#amount").attr('value', Ans);
      }
  </code></pre>
  
  <p>As you can see, this is just some simple jquery to calculate the percentage and set it to the amount field. 
  Visually the value is set, when I right click and inspect, the value there is also correct, however when I submit the form, the amount variable is 0 in the controller. 
  (P.S, if I type in a number it also gets submitted fine.)</p>
  
  <p>Was hoping if I could be assisted in fixing this issue, I am aware of using ajax to submit but that seems a bit of over kill and i'm interested why the value isnt being submitted even if it is set.
  <strong>Controller</strong></p>
  
  <pre><code>public ActionResult Addpayment([Bind(Include = "perDescrip,itemValue,cartId_FK,documentNbr,paymentTypeId_FK,amount,r1Value,r2Value,r3Value,r4Value,r5Value")] Transaction trans)
          {
  </code></pre>
  
  <p>Regards</p>