I have a legacy project with JQuery Autocomplete (not part of JQuery-UI) input inside a JQGrid with the following code:
{name : 'city',index : 'city',width : 300, editable: true,
editoptions: {
dataInit : function (elem){
$(elem).autocomplete('json/get_cities', {mustMatch: true, matchContains: true, minChars: 2, max:10});
}
}
},
When I start typing the ajax call triggers on the second letter, but only once. No consecutive calls on 3-rd, 4-th and so on letters typed. Also, when I start deleting symbols another ajax call is trigger when there is only one character left in the input.
Any ideas how to fix this?