I'm using this one:
https://github.com/agarzola/jQueryAutocompletePlugin
The only problem is that when you type the 1st character in the input field, it will display all term suggestions, including terms which don't contain this character.
And only after you type the 2nd character it will behave normally, displaying tag suggestions containing only those 2 characters.
I'm using this configuration:
$('input.autocomplete').autocomplete("localhost/boo/?get_suggestions=1", {
width: 250,
max: 100,
matchContains: true,
minChars: 1,
selectFirst: true,
cache: false,
multiple: true,
multipleSeparator: " "
});
Does anyone know a workaround for this?
Also when I type a random string, which I know it's not in the list, for eg. *&@FGBHFHBOFUBF*UB#
it will display the entire list again :(
The back-end:
if($_GET['get_suggestions']):
$terms = get_all_terms();
foreach ($terms as $term) echo $term['title']."\n";
die();
endif;