PDA

View Full Version : lookup list in select box, not only by first letter


avivit
01-30-2003, 12:40 PM
Hi,
I'd like to know if possible to scroll to a specific value in select box, by typing the what needed while focus is on the select box.
I.e. - I have a list of authors in a select-box (was built in asp), and would like a javascript(!) code for the select box to scroll to option "Smith" when I am typing "smit" or "smith" etc.
And would like to scroll to author "Smirnof" when typing "smir", "smirn" etc.

I do NOT want to have an extra text field for that, and NOT having a "go" button as well, but would like this to scroll to the right option in list (only scrolling), while typing in the very same select box.

For now, built in in IE, it scrolls to the first author that starts with the one letter I type. I'D like the same but for a string, not one letter.

If possible pls help, or let me know where I can see code samples of such things.

Thanks very much

Roelf
01-30-2003, 01:13 PM
http://codingforums.com/showthread.php?s=&threadid=9865

joeframbach
01-30-2003, 01:24 PM
http://www.webxpertz.net/forums/showthread.php3?s=&threadid=22028 :D :D

glenngv
01-31-2003, 01:53 PM
it's always good to search the forum first before posting...:)

joeframbach
01-31-2003, 03:09 PM
and multiple forums too!