Example data:
var data = [{label:"Jonathan Montiel",value:"28465"},{label:"Jackson C. Gomes",value:"5145692"}];
Autocomplete code:
$("#tagName").autocomplete({
source: function(request, response) {
response(data);
},
select: function( event, ui ) {
$( "#tagName" ).val( ui.item.label);
return false;
}
});
When I type in input with id #tagName, autocomplete options show but do not reduce as I type, any letter input leaves same autocomplete result e.g. typing ja
leaves both options showing.
Is there a glaring error?