jQuery autocomplete populate array on input text -
here's code populate same array given file source;
$("#input-search").autocomplete({ source: function(request, response) { $.ajax({ url: "searchlist.igx", data: { name: request.term, maxresults: 10 }, //datatype: "json", type: "get", success: function(data){ response(data); } }); }, select: function(event, ui) { $('#input-search').val(ui.item.value); }, cache: false, }); and here's searchlist.igx populated;
[{label:"john doe", value:"0123"},{label:"joshua poe", value:"0124"}] it's view this:

how can view populated suggested text autocomplete output view?
Comments
Post a Comment