Code:
function calculate(){
var textFields = document.getElementsByName('textfield23');
var total = 0;
for(var i in textFields){
if(textFields[i].value){
total += parseFloat(textFields[i].value);
}
}
document.getElementById('textfield19').value = total;
Leave a comment: