Allowing just Numeric Text on Input Text field

Posted by systempuntoout on Stack Overflow See other posts from Stack Overflow or by systempuntoout
Published on 2010-05-25T10:32:16Z Indexed on 2010/05/25 11:01 UTC
Read the original article Hit count: 183

Filed under:
|

There are many solutions suggested on Stack Overflow but i did not find it one that satisfy my requirements.
I was using Jquery Numeric plugin but i found that is not working (does not allow pasting) on FireFox 3.6 on Osx.

I'm searching a Jquery plugin or Javascript snippet that allow just Numeric Text on a Input Text field.
I have these requirements:

  1. Should allow just numeric text
  2. Should NOT allow punctuation (.,)
  3. Should NOT allow dashed text (-)
  4. Should allow pasting just for numeric text
  5. Multibrowser
  6. Multiplatform

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery