cjkenworthy
Programmer
In vbscript I have done arrays like
for i=0 to whatever
response.write(txttermno(i))
next
to output each array value. I want to do something similar in javascript:
for (i = 1; i<=javacount; i++) {
var value = document.frmtermno.txttermno + i + .value;
alert(value)
}
I know that this is the wrong syntax. What is the correct syntax so that I can achieve txttermno(i)?
cheers
for i=0 to whatever
response.write(txttermno(i))
next
to output each array value. I want to do something similar in javascript:
for (i = 1; i<=javacount; i++) {
var value = document.frmtermno.txttermno + i + .value;
alert(value)
}
I know that this is the wrong syntax. What is the correct syntax so that I can achieve txttermno(i)?
cheers