Jump to content

[SOLVED] Posting Choosed info


SkyRanger

Recommended Posts

I have been searching all over the net for a fix to my problem.  Was wondering if anybody had an idea to where I can find an example of what I am trying to do.

 

Here is the situation?

 

Dropdown box:

 

Choice 1

Choice 2

Choice 3

etc

 

When the user chooses one of the options it will then insert something into a text field:

 

When they choose 1 it will insert:  Member

choice 2: VIP

choice 3: Admin

etc

Link to comment
Share on other sites

<script language="javascript">
function update(what)
{
document.getElementById("mytxtfield").value=""+what+"";
}
</script>

<select onchange="update(this.value)">
<option select value="">Make You Choice
<option value="Member">Choice 1
<option value="VIP">Choice 2
<option value="Admin">Choice 3
</select>

<input type="text" id="mytxtfield">

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.