I am making a request in ajax but the result of it does not update, it is as if it were in some kind of cookie.
function AtualizaTotalItensNota(idFornec) {
$.ajax({
type: "GET",
dataType: "text",
url: "/sistema/compras/entrada/getitens/" + idFornec,
success: function (result) {
$("#totalitens").text(result)
}
});
}
If I do the request manually by the browser (direct in the address bar) it updates, but using the JS function the value will always remain the same.
Can anyone tell me what it can be?