search a select statement

F

Foo

In VB you can go through a drop down box letter by letter. Is it possible to
do this in JS?

What I mean is if I have a drop down of names and I hit 'b' it takes me to
the b's then if I hit 'e' it takes me to the e's where I want to go to 'be'
instead because e is the second letter I typed. Basically I need to build a
string not just sort through the first letter of each value.

Any ideas?

thanks
 
M

McKirahan

Foo said:
In VB you can go through a drop down box letter by letter. Is it possible to
do this in JS?

What I mean is if I have a drop down of names and I hit 'b' it takes me to
the b's then if I hit 'e' it takes me to the e's where I want to go to 'be'
instead because e is the second letter I typed. Basically I need to build a
string not just sort through the first letter of each value.

Any ideas?

thanks

Take a look at:

// Cooking with JavaScript & DHTML
// Bonus Recipe: Typing select Element Choices in IE for Windows
// http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html
// http://www.oreillynet.com/lpt/a/4135

This may be an IE only solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top