View Single Post
Old 09-22-2011, 01:20 AM   PM User | #2
DaveyErwin
Regular Coder

 
Join Date: Aug 2010
Posts: 810
Thanks: 12
Thanked 168 Times in 166 Posts
DaveyErwin is on a distinguished road
Names must not start with number,
do something like this
name="n10k"


document.goldcalculator.totalprice.value
returns a string, setting it will not
alter the value of the text box
do something like this
var calculatedPrice = document.goldcalculator.totalprice;
calculatedPrice.value =

var u = document.goldcalculator.gunit.value;

u will be a string not a number , input values
are returned as strings, you must convert them
to numbers
DaveyErwin is offline   Reply With Quote