3 Replies Latest reply on Sep 3, 2007 4:12 AM by Greg Dove

    input textfield

    forkguy
      Is it possible to set the value of an input textfield to "Number" so that I can call it in another Function
      Eg
      Quantity is set dynamically by the user in a input textfield.
      Price is set.
      Total function
      total = price*quantity
      This returns "NaN"

      Is this because the default value of an input textfield is set to "string"?

      code:
      //quantity is set by an imput textfield
      price_btn.onPress = function () {
      price = 6;
      total = price*quantity;

      }