So where it says "Amount Paid" and have "Total Labor" and I see in the code its subtracting 'Amount Paid' from the total, but when I remove the '-' sign and add the '+' sign it just adds both togeather like words for example' $875.00100.00,
Current code that I think is doing the math, but I just want to add them.
function update_balance() { var due = $("#total").html().replace("$","") - $("#paid").val().replace("$",""); due = roundNumber(due,2);
So where it says "Amount Paid" and have "Total Labor" and I see in the code its subtracting 'Amount Paid' from the total, but when I remove the '-' sign and add the '+' sign it just adds both togeather like words for example' $875.00100.00,
Current code that I think is doing the math, but I just want to add them.
Thanks for the help.
Jake
var due = parseFloat($("#total").html().replace("$","")) - parseFloat($("#paid").val().replace("$",""));
And in fact, you probably don't need the replace functions at all, parseFloat will ignore those.
Thanks Chris.
Can marked as solved.