Hi,
Im trying to use javscript to create somthing similar to an autocomplete control inside of javascript. When typing into an input text it loops through a div of available options and selects the closest match. The problem is i have a case where there is over 1000 possible options. If im looping through 1000 options on every keypress things obviously go a little slow.
I have taken as many "." lookups out as i can and use a cached length for the loop.
Any ideas or suggestions?
Im trying to use javscript to create somthing similar to an autocomplete control inside of javascript. When typing into an input text it loops through a div of available options and selects the closest match. The problem is i have a case where there is over 1000 possible options. If im looping through 1000 options on every keypress things obviously go a little slow.
I have taken as many "." lookups out as i can and use a cached length for the loop.
Any ideas or suggestions?
Comment