title: How to find total of a column value in a dynamic table in MVC
body: <p>I have a view with dynamic table.
  When loading the page there can be existing rows. Also user can add new rows and can save the same. In the table there are two columns net_amt and quantity.
  at the bottom of the table I need to show the total of these column is it possible. Please share some idea regarding the same.</p>
  
  <p><strong>Dynamic template of table</strong></p>
  
  <pre><code>&lt;table id="Newservice" style="display:none"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;input class="" style="width:40px" type="text" name="provider_service_dtls[#].net_amt" value /&gt;&lt;/td&gt;
  &lt;td&gt;
  &lt;input class="" style="width:25px" type="text" name="provider_service_dtls[#].quantity" value /&gt;
  &lt;input type="hidden" name="provider_service_dtls.Index" value="%" /&gt;
  &lt;/td&gt;
  &lt;td&gt;&lt;input id="delete" class="delete" value="X" type="button"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>Table inside the view</strong></p>
  
  <pre><code>@if (Model != null)
  
      {
      for (int i = 0; i &lt; Model.provider_service_dtls.Count; i++)
      {
      &lt;td&gt;
      @Html.TextBoxFor(m =&gt; m.provider_service_dtls[i].net_amt, new { style = "width: 40px;"})
      &lt;td&gt;
      @Html.TextBoxFor(m =&gt; m.provider_service_dtls[i].quantity, new { style = "width: 25px;" })
      &lt;input type="hidden" name="provider_service_dtls.Index" value="@i" /&gt;
      &lt;/td&gt;
       &lt;td&gt;&lt;input id="delete" class="delete" value="X" type="button"&gt;&lt;/td&gt;
      &lt;/tr&gt;
       }
      }
      &lt;/table&gt;
  </code></pre>
  
  <p><strong>Table View in Browser</strong>
  <img src="https://i.stack.imgur.com/mO2rY.jpg" alt="enter image description here"></p>
  
  <p>When open a request there will be zero rows or more. When adding rows and after filling the values in the text box the total should change automatically. I think its only possible by jquery but im totally stucked here. please help</p>