How to sum two Html editor in html table in MVC 5 using jquery
I want to add the total column like this
<table>
<th class="sorting_asc" tabindex="0" aria-controls="zero-configuration" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending">
@Html.LabelFor(model => model._Details[0].RqQty, htmlAttributes: new { @class = "control-label" })
</th>
<th class="sorting_asc" tabindex="0" aria-controls="zero-configuration" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending">
@Html.LabelFor(model => model._Details[0].Price, htmlAttributes: new { @class = "control-label" })
</th>
<th class="sorting_asc" tabindex="0" aria-controls="zero-configuration" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending">
@Html.LabelFor(model => model._Details[0].Total, htmlAttributes: new { @class = "control-label" })
</th>
<td >
@Html.EditorFor(model => model._Details[i].RqQty, new { htmlAttributes = new { @class = "product-buying-price" , id = "txtBox1" } })
@Html.ValidationMessageFor(model => model._Details[i].RqQty, "", new { @class = "text-danger" })
</td>
<td >
@Html.EditorFor(model => model._Details[i].Price, new { htmlAttributes = new { @class = "product-selling-price", id = "txtBox2" } })
@Html.ValidationMessageFor(model => model._Details[i].Price, "", new { @class = "text-danger" })
</td>
<td>
@Html.EditorFor(model => model._Details[i].Total, new { htmlAttributes = new { @class = "net - profit" } })
@Html.ValidationMessageFor(model => model._Details[i].Total, "", new { @class = "text-danger" })
</td>
</table>