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:

dynamic search autocomplete

how can view populated suggested text autocomplete output view?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -