Jorn's autocomplete - setting options
I have the autocomplete working on my local machine, but I can't get the minChars to work correctly. If I set it to 0 or 1, it works just fine. If I set it to 2 or higher, the page indicates that it's doing something when that key is hit, but no autocomplete suggestions appear. If I delete the 2 and replace it with a 1, everything works.
Basic setup:
When the page first loads, I have a jQuery ajax function grab the data to use for the autocomplete from a server method. This method returns data before the autocomplete functions begin. Even when the autocomplete fails after setting minChars, I still get confirmation that the data is available. It's obviously not a syntax error, since I can replace the 2 (or higher number) with a 1 or a 0 and it works as expected. What could be causing this?