This is code from the editable invoice (https://css-tricks.com/html-invoice/) and instead of an Invoice I was trying to make a Quote form.
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);
$('.due').html("$"+due);
}
Thanks for the help.
Jake