Solved

How to Link JavaScript TextBox with a Dropdown

Posted on 2004-09-15
3
215 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pairs challenge 5 77
Counting documents in a Domino View 3 84
iSeries email authority 6 57
What is wrong with the below insert statement. Getting error when executing. 5 34
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
A short article about a problem I had getting the GPS LocationListener working.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

809 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