H
HelLind
I have more than one File field forms named filename0, filename1,
filename2, and so on.....
And then I use javascript to read the value:
document.formupload.filename0.value
document.formupload.filename1.value
But I want to iterate it in a FOR loop, to save long codes.
for (i = 0; i < 9; i++) {
document.formupload.filename(???).value
}
How do I use JS to solve the above problem, to replace the (???), to
read the values of all the forms.
This surely have been answered before, but I don't know what keywords
to google for.
So anyone can help will be appreciated. TIA
roger
filename2, and so on.....
And then I use javascript to read the value:
document.formupload.filename0.value
document.formupload.filename1.value
But I want to iterate it in a FOR loop, to save long codes.
for (i = 0; i < 9; i++) {
document.formupload.filename(???).value
}
How do I use JS to solve the above problem, to replace the (???), to
read the values of all the forms.
This surely have been answered before, but I don't know what keywords
to google for.
So anyone can help will be appreciated. TIA
roger