javascript addition
Posted: Thu Jan 12, 2006 1:44 pm
This is going to sound stupid... I haven't ever been too big on javascript, so I don't know how to do this...
Basic math??? How do you add numbers
I am trying something like:
And I am getting all wrong answers... what gives?
Basic math??? How do you add numbers
I am trying something like:
Code: Select all
subtotal = document.form.field.value
tax = subtotal * 0.0725
total = tax + subtotal
document.write(subtotal)