Disable jQuery autocompleter cache

Fri 12 February 2010

For anyone wondering how to disable the autocompleter cache in jQuery(meaning you always poll the server each time a letter is entered).

Simply set cacheLength: 0, in the autocompleter's settings. Seems obvious but my googling told me never set this value below 1 or the whole thing would explode. Tried matchSubset etc and nothing else worked.

Simple solutions eh?

Category: Javascript Tagged: javascript coding jquery


Page 1 of 1