R
RHO
Hi'
I've got a probably easy question but haven't figured out what the answer is
In a form I've got an input text field named 'myText' and a SELECT field
mySelect. Outside the form I've defined an array like
myArray=new Array('Item1','Item2','Item3');
Now I want to change the value of the myText field in response to a change
in the mySelect field. I've made a function
One variant (among lots) is this one
Function myChangeFunc(id){
myForm.myText.value=myArray[id];
}
Another one is
eval("myForm.myText.value") = myArray[id];
Nothing seems to works. Please advise me !
Cheers,
RHO
I've got a probably easy question but haven't figured out what the answer is
In a form I've got an input text field named 'myText' and a SELECT field
mySelect. Outside the form I've defined an array like
myArray=new Array('Item1','Item2','Item3');
Now I want to change the value of the myText field in response to a change
in the mySelect field. I've made a function
One variant (among lots) is this one
Function myChangeFunc(id){
myForm.myText.value=myArray[id];
}
Another one is
eval("myForm.myText.value") = myArray[id];
Nothing seems to works. Please advise me !
Cheers,
RHO