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
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