$(document).ready(function() {
$('#nome_dominio').autocomplete("testeJson2.php", {
parse: function(data) {
},
formatItem: function(result) {
return formatar(result);
}
}).result(function(e, result) {
alert ('escolheu algo');
});
});
Result in an object (array). data is string. They both should correspond to the same http response. Why is that? :S X.X :(
Regards, MEM