I'm using the autocomplete function in a project, when I use local everything happens fine, but when I host only the first field it works:
$(document).ready(function(){
$("#cliee").autocomplete("../acoes/pesquisa/insertProjeto.php", {
selectFirst: false,
scrollHeight: 220
});
});
function habCampo(){
var proj = document.getElementById('cliee').value;
$("#projj").autocomplete('../acoes/pesquisa/insertTipoProjeto.php?i='+proj, {
selectFirst: false,
scrollHeight: 220
});
}
When the first field is filled in, it sends the client id to habCampo
function, which I try to pass to another page, to make a select, where the user will type and only return the projects that are linked to the client.
As said, location works perfect, but in production does not work. Could you help me?