View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:21 PM
Steven V
Posts: n/a
You need to get the value from your input box. (something like <input box name>.value).
You can't do math on a string, so you must convert it to a float (parseFloat(<input box name>.value))
Now you can do math on it. 9/5*parseFloat(<input box name>.value) + 32
After that you can put it into the alert(9/5*parseFloat(<input box name>.value) + 32).

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!