Solved

How to Link JavaScript TextBox with a Dropdown

Posted on 2004-09-15
3
217 Views
Last Modified: 2010-04-17
I have a drop down and a textbox, is it possible that when ABC is typed in the text-box the ABC in the drop down is automatically selected asuming there is a abc in the drop down.
0
Comment
Question by:isaacmc
3 Comments
 

Author Comment

by:isaacmc
ID: 12072109
it would be best if you guys could show me an example
0
 
LVL 7

Accepted Solution

by:
suramsureshbabu earned 100 total points
ID: 12072250
0
 

Assisted Solution

by:qgillet
qgillet earned 100 total points
ID: 12072756
Try this (I tested it with Internet Explorer and Mozilla -on Windows-):

<form>
    <select name="dropdown">
        <option value="123" />123
        <option value="abc" />abc
        <option value="def" />def
        <option value="ghi" />ghi
    </select>
    <input type="text" name="textbox" onkeyup="dropdown.value=this.value" />
</form>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question