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
JavaScript
|jQuery
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:
- Should allow just numeric text
- Should NOT allow punctuation (.,)
- Should NOT allow dashed text (-)
- Should allow pasting just for numeric text
- Multibrowser
- Multiplatform
© Stack Overflow or respective owner