Forum Moderators: open
function increasePrice() {
var dollars= document.getElementById('dollarValue').firstChild.nodeValue;
var cents1 = document.getElementById('centValue1').firstChild.nodeValue;
var cents2 = document.getElementById('centValue2').firstChild.nodeValue;
var value = parseFloat(dollars +"." + cents1 + cents2) + 0.25;
var val = value.toString();
document.getElementById('dollarValue').firstChild.nodeValue = val[0];
document.getElementById('centValue1').firstChild.nodeValue = val[2];
document.getElementById('centValue2').firstChild.nodeValue = val[3];
}
document.getElementById('dollarValue').firstChild.nodeValue = val[0];
document.getElementById('centValue1').firstChild.nodeValue = val[2];
document.getElementById('centValue2').firstChild.nodeValue = val[3];