How to Link JavaScript TextBox with a Dropdown

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.
isaacmcAsked:
Who is Participating?
 
isaacmcAuthor Commented:
it would be best if you guys could show me an example
0
 
qgilletConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.