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
https://forums.phpfreaks.com/topic/85736-solved-posting-choosed-info/
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">

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.