Rod
Rod

Reputation: 15475

dropdownlist hierachy of options filter

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.

Upvotes: 3

Views: 146

Answers (1)

Christopher
Christopher

Reputation: 10637

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

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

Upvotes: 2

Related Questions