Click to See Complete Forum and Search --> : string Variables


lenm
December 11th, 2003, 02:07 PM
I am summating values in text boxes. I use a php script to read
a customer number and find all his accounts and the outstanding
balances in each account. A customer could have 1 account or
200 accounts. If the customer wants to pay a partial amount on
an account they enter the amount into the correct text box.
onblur a function is ran to sumated the text box values. Count2
is the number of text boxes on the page.

function Sumation(){
var total2;
total=parseFloat(document.taxpmt.count2.value) ;
for (i = 1; i < total; i++) {
var value = parseFloat(document.taxpmt.tax+i.value);
total2 = total2 + value;
}
document.taxpmt.total1.value=total2;

my problem is that value is not seen as a document object.
Any one know the correct syntax to put a variable in a string
and have it seen as an document object