I have a problem that for many is simple, I have a code that takes the value of a input
of type hidden
and when I get this value, I add +1, that is, if the value is 3 it add +1 and has to stay 4:
var total = $("#total").attr('value') + 1;
It would have to stay 4 and change the value
of the input to 4:
$("#total").val(total);