I'm using this plugin here: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
I have this:
function formatar(result) {
return result.q + ' (teste ko)';
}
$(document).ready(function() {
$('#nome_dominio').autocomplete("testeJson2.php", {
parse: function(data) {
alert(data);
//what now?
},
formatItem: function(result) {
return formatar(result);
}
}).result(function(e, result) {
alert ('you have choose something');
});
});
If we alert(data), we DO get the results exactly like so:
[{"nomeDominio":"aaaa.hk"},{"nomeDominio":"agentesdeexecucao.hk"}]
I believe the next step should be parse this value in a way the plugin understands?
Can I have a push please? Thanks in advance, MEM