If I enabled/disabled the checkbox button, the added .00 removed from the amount.
How can I add the .00 to the amount?
Below is my code:
function checks() {
document.getElementById('other_donation_check').checked = false;
}
function add(total, this_chk_bx) {
var thetotal = form2.thetotal.value;
if (this_chk_bx.checked == true) {
//add if its checked
var count=0;
form2.thetotal.value = Number(thetotal) + Number(total);
count++;
} else {
//subtract if its unchecked
form2.thetotal.value = thetotal - total;
}
}
and I created a fiddle.
How can I solve this issue?