PDA

View Full Version : Drop Down Box Selection Search


MB0526
01-07-2003, 02:01 AM
I need a little help with a Drop Down Box....Currently, I have about 200 items in a drop down selection box and I need to be able to position to a specific item within the drop down box. Now I know that I can position to the first letter just by using the basic browser functionality. I need to be able to type in multiple letters and position to the item. For example, say there are 4 words in the middle of the list:

Mazda
Merchant
Music
Mystic

I want to be able to key in "M" then "y" to position directly to Mystic. Is there a way for me to use JavaScript to do this??

Thanks for any help you could give me.

Michael

glenngv
01-07-2003, 02:52 AM
http://codingforums.com/showthread.php?s=&threadid=9865&perpage=15&pagenumber=1

MB0526
01-07-2003, 03:12 AM
Thank you

glenngv
01-07-2003, 03:22 AM
Welcome :)
If you can't get it to work, let me know.

MB0526
01-10-2003, 12:30 AM
Your code is working fine but for some reason when you combine it with the "onchange" command it does not recognize that the drop down box was changed??? If I do the selection by choosing the drop down arrow and manually selecting a value with the mouse then the "onchange" command executes. Any ideas?