I am not sure why, but I am having a serious issue trying to add 1 to a variable.
net = $('#net').val()+1;
$('#net').val(net).change();
This results in 1 1 (I understand that this is just concatenating). The last line is to output it to my input field. if I do this:
net = net+1;
$('#net').val(net).change();
I get NaN. When I try to use parseInt like this:
net = net+1;
net = parseInt(net,10);
$('#net').val(net).change();
I still get NaN. Ihave looked at the other examples on SO that adress this problem, and they say to use parseInt(), which I did. What else can I try to get this to add 1 to the existing number and putit in my field?