View Single Post
  #1 (permalink)  
Old 01-22-04, 01:46 AM
trigger_ph trigger_ph is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Can JavaScript do Incremental Searching?

Is it possible to implement incremental searching using JavaScript?
For instance, I have a textbox and a select element within a form. When I type "f" in the textbox, an option matching "f" as a first letter in the said select element becomes selected. If I further type "o" what becomes selected in the select element are those options having "fo" as first two letters, and so on. When I type in "food" a match, if found, is selected, or whichever is nearer.

I hope someone can enlighten me on this. Thanks!
Reply With Quote