1 Reply Latest reply: Jun 9, 2009 3:36 AM by PhHein RSS

    Javascript Regular Expression help

      I need to write validate number in javascript using regular expression on keypress

      For example
      eg) 12343.55

      Important :
      1.It can accept upto 10 (12345676890.00,3434.45) or less than 10 numbers before decimal point and it should accept only 2 number after decimal point
      2.It should be onkeypress

      I wrote in keyup event it is working properly..
      I need to write on keypress event how can i do it....
      please hep me....