Drop down populates 2nd text box

M

Mary Lauenstein

I need to have the value chosen in a drop down box to
populate a 2nd text box. The 2nd text box is a CONTAINS
query which I need to search a database. Does anyone know
how to do this with one submit button?

Thanks, Mary
 
M

MD WebsUnlimited.com

Hi Mary,

Yes I know how to do this with one submit button. Oh, that is not your real
question is it ;>)

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]; }" >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top