1
I’m not being able to list my Json in the jqueryui autocomplete. In the browser console I see that it is calling no more shows at the time I apply the append in LI.
$(function(){
var mostraLista = "http://jsonplaceholder.typicode.com/users";
$.get(mostraLista, function(response){
var dados = response;
for(var i = 0; i < dados.length; i++){
var tudoJ = dados[i];
console.log(tudoJ.name);
$("<li>").text(tudoJ.email).appendTo(".ui-corner-all");
}
});
$("#tags").autocomplete({
source: mostraLista
});
});
Solved my problem, but I was left with a doubt. as he made the append ?
– Di Boa
@Diboa the plugin itself does this.
– Sergio