Can someone tell me what is wrong with this statement?
function subtotal(){
var ttot = 1;
for (var i = 1; i < 7; i++){
if(isPosInt(doc ument.forms[0].total(i).value )){
ttot += document.forms[0].total(i).value ;
}
document.forms[0].subtot.value = format(ttot);
}
}
I know the "isPosInt" function works because it works for other things and
Mike wrote it...so I did not add it.
And I do have a global varible elsewhere var e = document.forms[0].elements,
but I also can't get "if(isPosIn t(ea['total' + i].value))" to work
function subtotal(){
var ttot = 1;
for (var i = 1; i < 7; i++){
if(isPosInt(doc ument.forms[0].total(i).value )){
ttot += document.forms[0].total(i).value ;
}
document.forms[0].subtot.value = format(ttot);
}
}
I know the "isPosInt" function works because it works for other things and
Mike wrote it...so I did not add it.
And I do have a global varible elsewhere var e = document.forms[0].elements,
but I also can't get "if(isPosIn t(ea['total' + i].value))" to work
Comment