I have several inputs in an HTML where the IDs are correct. I want to get value
of these Inputs with these JavaScript variables, however only the Input of nome
takes the value of the variable! The rest of the inputs are empty:
$.ajax({
url: 'api/user/getSession',
type: 'POST',
success: function(data){
document.getElementById("nome").value = data.nome,
document.getElementById("perfil").value = data.perfil,
document.getElementById("empresa").value = data.perfil
}
});