I've got this calculator I'm using on a website...
Simple question: After clicking "Calculate Savings" button, it shows the answer (1250 in this example) in a text box
"1250 dollars in annual savings"
I'd simply like to change it to read:
"You could save up to $1250 per year"
Everytime I try to change the code (in red) it results in an error...can someone help...here's the code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM ACTION="#" NAME=calc>
Purchase Price
<INPUT TYPE=TEXT NAME="originalprice" SIZE=5>
<BR><BR>
Current Market Value
<INPUT TYPE=TEXT NAME="cmv" SIZE=5>
<BR><BR>
Tax Rate (i.e. 1.25)
<INPUT TYPE=TEXT NAME="rate" SIZE=3>
<BR><BR>
<INPUT TYPE=BUTTON VALUE="Calculate Savings"
ONCLICK="document.calc.savings.value
=((document.calc.originalprice.value * document.calc.rate.value)/100)
- ((document.calc.cmv.value * document.calc.rate.value)/100)+ ' dollars in annual savings'">
<BR><BR>
<TEXTAREA NAME=savings
style="
font-size: 16px;
font-weight: bold;
color: white;
background-color: green;"
COLS=30 ROWS=2 ReadOnly>
</TEXTAREA>
</FORM>
</BODY>
</HTML>
