Can anyone please suggest some links so I can perform the total count task? I am dynamically generating the textbox when Admin clicks on the Add New Row.
<tr>
<th style="width:70px;">Invoice Item</th>
<th style="width:100px;" class="no-sort">Invoice Discription</th>
<th style="width:10px;" class="no-sort">Invoice Unit</th>
<th style="width:10px;" class="no-sort">InvoiceQuantity</th>
<th style="width:20px;" class="no-sort">Line Total</th>
</tr>
<tr>
<td class="width-200 text-wrap ParentPart"><input type="text" name="InvoiceItem[]" id="InvoiceItem[]" /></td>
<td class="width-200 text-wrap"><input type="text" name="InvoiceDiscription[]" id="InvoiceDiscription[]" /></td>
<td class="text-wrap"><input type="text" name="InvoiceUnit[]" id="InvoiceUnit[]" /></td>
<td class="width-200 text-wrap"><input type="text" name="InvoiceQuantity[]" id="InvoiceQuantity[]" value="1" /></td>
<td class="text-wrap editable text chkQty QtyPer"><input type="text" name="InvoiceTotal[]" id="InvoiceTotal[]" /></td>
<td class="addQty" style="display:none">1</td>
</tr>
$(document).ready(function () {
$("#add").click(function () {
$('#dtExample tbody>tr:last').clone().insertAfter('#dtExample tbody>tr:last');
return false;
});
});
My requirement is by default in InvoiceQuantity I am showing 1 as 1 hour. Now when I enter Invoice Unit in the Line Total automatically counts the value.
100 1 100
And If I change the InvoiceQuantity also wants to show the effect in Line Total
100 3 300
Search so many links from STACK OVERFLOW but did not get the exact solution link. So, please suggest me.