Hi all,
I have a form with many textboxes. I have named them
"txt[1]", "txt[2]", "txt[3]", etc..
I did this so that I could easily loop through them and get their
values.
However, how do I assign a value to one of these fields inside a loop?
For example:
for (i=1; i<=10; i++){
document.frmA.txt[i].value = 4
}
This gives me an error message.
I don't want to use 'document.frmA.elements[i].value because I have
other textfields on this page and the elementID doesn't always match.
thanks for any help.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!