I have a function in ajax where I get data in the success
function editarUsuario(id_usu) {
alert(id_usu);
$.ajax({
url: "EditServlet",
type: "GET",
data: {
id:id_usu
},
success: function (info_usu) {
alert(info_usu);
},
error: function () {
alert("no trae datos");
}
});
}
I put an alert to show info_usu
How do I get the name only? I hope you can help me.