SkyRanger Posted January 12, 2008 Share Posted January 12, 2008 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 Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 12, 2008 Share Posted January 12, 2008 <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"> Quote Link to comment Share on other sites More sharing options...
SkyRanger Posted January 12, 2008 Author Share Posted January 12, 2008 Awsome, thanks phpQuestioner Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 13, 2008 Share Posted January 13, 2008 your welcome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.