>this test : if( tbxValue != lastTbxValue ) will always return false because >the function each() monoplize the unique thread. The event "onkeyup" from >the textbox couldn't occur while each() is running, so tbxValue remains the >same in the meantime.
As I stated, you'll want to use a setTimeout() to trigger the population. This will make the execution asynchronous. I'd also recommend triggering the code to run only if another keypress hasn't occurred in the past 50-100ms or so. That way you're only running the code once the user "pauses" or stops typing. This is how most auto-complete/suggestion plug-ins work. -Dan