How do I validate that value entered into an input box is just numbers?

Posted by Mo on Stack Overflow See other posts from Stack Overflow or by Mo
Published on 2010-05-24T16:03:07Z Indexed on 2010/05/24 16:11 UTC
Read the original article Hit count: 308

Filed under:
|

Hi

I was wondering what the best and easiest way was to ensure that the value a user enters into an input box is numeric in a web page? either notify them they are not allowed to when they edit it or not allow them to enter in non numeric values to begin with.

any ideas?

thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html