Web Development

General discussion


Combo (Select as you type)

By raval_manoj ·
I've combobox contains long list of city names. Now I want to select the entry as I type. For ex if "Am" is typed it select the entries starting with "am". If "Van" is typed it select the entries startin with "Van". I need help for the same.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -


by Tony Hopkinson In reply to Combo (Select as you type ...

Do you want to cut down the list of choices available based on input or jump the highlight to the nearest match. I'd be shocked if you can't download a 3rd party activeX with this functionality.
But essesntially you trap the keys
with a keydown handler and extract matches from an external list of items and then repopulate the combo list items or you iterate through the items in the combolist for the first match and set the selected? property.

Related Discussions

Related Forums