I have the following bit of code
for (var i=0; i<numLines; i++)
{
alert (document.form1.TQuantity+i.value);
fieldQty = fieldQty + document.form1.TQuantity+i.value;
}
The alert box lists the value as object[undefined]. Is there a way to include variables in this way..ie
document.form1.TQuantity0.value
document.form1.TQuantity1.value
....
..
.
for (var i=0; i<numLines; i++)
{
alert (document.form1.TQuantity+i.value);
fieldQty = fieldQty + document.form1.TQuantity+i.value;
}
The alert box lists the value as object[undefined]. Is there a way to include variables in this way..ie
document.form1.TQuantity0.value
document.form1.TQuantity1.value
....
..
.