I have the following problem, I'm doing a search field, to search by the name of the client, so far so good, I was able to bring the clients but they are in an array, my problem is how I divide each client into separate line
I want to do this:
Butit'scominglikethis:
Itriedtousethe$.eachthreaded,butitendsupduplicatingtheregistry,ifitgetsonlyoneoftheregistryright,butthenamehasitinthesamelineasitsIDandAGE
success:function(data,status){varvaloresID;vararrID=[];vararrNome=[];vararrIdade=[];for(vari=0;i<data.d.length;i++){varitem=JSON.stringify(data.d[i]["ID"]);
arrID.push(data.d[i]["ID"]);
arrNome.push(data.d[i]["Nome"]);
arrIdade.push(data.d[i]["Idade"]);
}
$('.child').remove()
$('.valorTr').after('<tr class="child"><td>'+JSON.stringify(arrID)+'</td><td>'+arrNome+'</td><td>'+arrIdade+'</td></tr>');
}