Solved

How to Link JavaScript TextBox with a Dropdown

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to setup 18 80
dividesSelf challange 15 79
userCompare  challenge 3 61
oracle query help 18 78
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now