Ver originalfunction reset_campos(){ /* ... */ var total = 0; $("input[name='subtotal\\[\\]']").each(function(){ total += +$(this).val(); }); $("#total").val(total.toFixed(2))}
Ver originalSuma: <input id="total" disabled="disabled" type="text" />