0
I’m trying to add the value of the fields of a table, but it’s not working, with parseint it works, only it has values that won’t be integers, so I put it as a float, but it doesn’t perform the sum:
let result = 0;
let columns = $("#tablepesquisaprodutos tr td:nth-child(" + 5 + ")");
columns.each(i => {
result += parseFloat($(columns[i]).html());
});
$("#DescontoP").val(result);