function calTotal(sum) { var w=0; var sum = Number(document.getElementById("total").value) + Number(document.getElementById("total"+w).value); // var sum1 = sum + Number(document.getElementById("total"+w).value); w++; document.getElementById("sub").value = sum.toFixed(2); }
total
total0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)