Drop Down List value to a text value on the same form

T

TRLG

Hi
This is probably the dumbest post you have ever had, and it probably is
staring me in the face however:


I am using a drop down list that is created from a table in a
database.
The drop down list populates and works.
I want to be able to take the value selected and update the value of
another text field on the same form.


Regards
TRLG
 
A

AMysticWeb

I don't know if the following will suit your purpose, but using a checkbox,
you can take the input from a DD and transfer it to a textbox.

"PinkBishop" offered code similar to below about 2 years ago.

<select size="1" name="Input_1">
<option selected>Choose Here</option>
<option value="1 Mississippi">1 Mississippi</option>
<option value="2 Mississippi">2 Mississippi</option>
<option value="3 Mississippi">3 Mississippi</option>
</select> <input type="text" name="Input_2" size="20"> <input
type="checkbox" name="checkbox"
onclick="Input_2.value=this.checked?Input_1.value:'' ">

Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples
 
T

TRLG

TRLG said:
*Hi
This is probably the dumbest post you have ever had, and it probably
is staring me in the face however:


I am using a drop down list that is created from a table in a
database.
The drop down list populates and works.
I want to be able to take the value selected and update the value of
another text field on the same form.


Regards
TRLG *
 
T

TRLG

Hi
Thanks for your advice, it works, however I need the text box to update
without the user clicking on something else Is it possible to do it
using an onchange and blur event.
I have tried but cannot get anything to work
Can't seem to get the code to post

regards
TRLG
 

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