I was using example of autocomplete function from this site:
But I have to change it a little bit, so there is a question:
I have 2 text boxes - theTextBox1, theTextBox2
and 1 array ar = new array ([“xxx1,yyy1],[“xxx2,yyy2],[“xxx3,yyy3]); both xxx* and yyy* are text elements.
First of the text boxes uses this autocomplete code and gets the xxx* value. It works fine, But I also need, to set up theTextBox2 value with yyy* if theTextBox1 get any of xxx* values.
I have the variable, which gets the right yyy value from the aaray, but don't know how pass this value to the textbox.
This doesn't work:
var theTextBox2 = document.Form1.name1; // theTextBox2 variable is already set up and has the right value.
PRINT "<INPUT TYPE=text NAME=\"name1\" VALUE=\"$name1\">\n";