¿Alguien puede sugerir algunos enlaces para que pueda realizar la tarea de conteo total? Estoy generando dinámicamente el cuadro de texto cuando el administrador hace clic en Agregar nueva fila.
<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; }); });Mi requisito es por defecto en InvoiceQuantity . Estoy mostrando 1 como 1 hora. Ahora, cuando ingreso la Unidad de factura en el Total de línea, automáticamente cuenta el valor.
100 1 100Y si cambio InvoiceQuantity también quiere mostrar el efecto en Line Total
100 3 300Busque tantos enlaces de STACK OVERFLOW pero no obtuvo el enlace de solución exacto. Entonces, por favor sugiérame.