I have a small problem with the following code.
var cantidad = $tds.eq(2).find("#cant").val();
total_bultos = parseInt(cantidad) + total_bultos;
document.getElementById("total_bultos").value = total_bultos;
When trying to add the characters entered in some text fields and make the conversion of string
to int
always throws me the famous NaN
when using parseInt()
in the conversion of the variable. The result must be a sum of integers, not a sum of characters.
If you can detect the problem, I thank you.