Possible Duplicate:
How to allow only numeric (0-9) in HTML inputbox using jQuery?
how can I limit user input as user type in a text box?
For example, I want to accept only a number and I want to ignore user input as long as it's putting non-numeric character. So,
- I need to preserve the existing value if user enters invalid character
- it should be able to handle any other case of input changes (i.e. typing, copy paste, etc).
Thanks!!! Robert