PDA

View Full Version : AutoFill Drop Down Boxes


snuppz
02-18-2004, 04:33 PM
Is it possible with JavaScript to have a dropdown box complete the selection as the user is typing in? I know that HTML does something similar but using just the first letter of the selection, but I'm looking to use that with part or whole words.

Example:

if my drop down box contains the following items:

Black
Blue
Gray
Green
Orange
Purple
Red
Yellow

If I start typing in the drop down box "B" it will highlight "Black". If I type "Bl" I want it to be able to highlight "Black". If I type "Blu" I want it to be able to highlight "Blue".

requestcode
02-18-2004, 06:12 PM
Check out this link:
http://www.codingforums.com/showthread.php?s=&postid=156759#post156759

I believe that is what you are looking for. Good Luck.

snuppz
02-18-2004, 08:42 PM
Thank you!! Works great!