Currency validation in forms

Discussion in 'Programming' started by xheartonfire43x, Nov 4, 2008.

  1. #1
    Does anyone know of a way to validate for currency in a form. I would use validate="integer" but that won't let you use decimals in the number and I need to be able to.

    PS I would prefer not to do an onServer validation for it unless completely necessary. I know about using a hidden field.
     
    xheartonfire43x, Nov 4, 2008 IP
  2. robhustle

    robhustle Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Will you be validating foreign currencies as well, or just US?
     
    robhustle, Nov 4, 2008 IP
  3. xheartonfire43x

    xheartonfire43x Guest

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    just US but I figured it out. I didn't realize that you can just do a validate="numeric"
     
    xheartonfire43x, Nov 4, 2008 IP