views:

30

answers:

1

Hi All,

I have a hierarchy of many records (a 1000 to be exact) that I display in a dropdownlist. Is there a way to filter this list down with a keyup event of the select/option list?

<select id="food">
  <option>Foods</option>
  <option>&nbsp; Fruits</option>
  <option>&nbsp;&nbsp; Apple</option>
  <option>&nbsp; Vegetables</option>
  <option>&nbsp;&nbsp; Carrot </option>
</select>

Thanks, rod.

+2  A: 

You might be able to use something like a jQuery Autocomplete plugin:

http://www.pengoworks.com/workshop/jquery/autocomplete.htm

Chris