Validate numeric text field in jquery
Posted
by mcxiand
on Stack Overflow
See other posts from Stack Overflow
or by mcxiand
Published on 2009-11-09T05:43:11Z
Indexed on
2010/04/10
3:43 UTC
Read the original article
Hit count: 347
jQuery
|asp.net-mvc
I have this code in jquery to prevent non-numeric characters being inputted to the text field
$("#NumericField").numeric();
Now, on the text field i cant input non-numeric characters. That is OK. The problem here is if the user will paste on the text field with non numeric characters.
Is there a way/method to disable pasting if the value is non-numeric? Or is there any other approach to handle this situation that you can share?
© Stack Overflow or respective owner