Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to Link JavaScript TextBox with a Dropdown

Posted on 2004-09-15
3
Medium Priority
?
223 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 300 total points
ID: 12072250
0
 

Assisted Solution

by:qgillet
qgillet earned 300 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

Technology Partners: 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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Six Sigma Control Plans
Loops Section Overview

926 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