F
Fed21
Any experts out there can help to solve the following problem:
I have the following Javascript expressions:
temp[0] = document.frmScr1.txtABC
temp[1] = document.frmScr1.txtDEF
temp[2] = document.frmScr1.txtHIJ
And I have created an array to store these values:
ary["ABC","DEF","HIJ"];
Now, the problem is that is it possible to generate a FOR loop to
perform the function as above?
e.g.
for (count=0; count < 3; count++) {
temp[count] = document.frmScr1.txt + ary[count]; // incorrect, guess
only
};
Of course the above code is incorrect, but what should I do or any
suggestion?
Many thanks in advance.
Fed.
I have the following Javascript expressions:
temp[0] = document.frmScr1.txtABC
temp[1] = document.frmScr1.txtDEF
temp[2] = document.frmScr1.txtHIJ
And I have created an array to store these values:
ary["ABC","DEF","HIJ"];
Now, the problem is that is it possible to generate a FOR loop to
perform the function as above?
e.g.
for (count=0; count < 3; count++) {
temp[count] = document.frmScr1.txt + ary[count]; // incorrect, guess
only
};
Of course the above code is incorrect, but what should I do or any
suggestion?
Many thanks in advance.
Fed.