T
Trillian
I found the following tip (below) on a post of a few days
ago - it's what I want to do - take the value selected
from a dropdown and place it in a text box to query the db.
But when I run the .asp page the value placed in my text
box is [object] - not the value I selected in the
dropdown. What am I doing incorrectly?
Here's the post suggestion and code; my dropdown has one
column of data from a db.
"Use the onchange event of the drop down to populate the
text box:"
<select onchange="if (this.selectedIndex > 0) {
this.form.my_text_field.value = this.options
[this.selectedIndex]; }" >
ago - it's what I want to do - take the value selected
from a dropdown and place it in a text box to query the db.
But when I run the .asp page the value placed in my text
box is [object] - not the value I selected in the
dropdown. What am I doing incorrectly?
Here's the post suggestion and code; my dropdown has one
column of data from a db.
"Use the onchange event of the drop down to populate the
text box:"
<select onchange="if (this.selectedIndex > 0) {
this.form.my_text_field.value = this.options
[this.selectedIndex]; }" >