In jquery how to check the entered text data contains characters and special characters.if it is there i need to display error message else i need to execute other method.please tell me ? How to check characters and special characters of a text in jquery ?
Asked
Active
Viewed 116 times
0
-
Might this help you http://stackoverflow.com/questions/11896599/javascript-code-to-check-special-characters – Satpal Apr 21 '14 at 12:11
-
i need to check characters and also special characters if any one found need to display error message. – user3494837 Apr 21 '14 at 12:15
-
use a regular expression to test the string. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions – root Apr 21 '14 at 12:47
-
by using isnumeric property resoved that issue. – user3494837 Apr 21 '14 at 13:05
1 Answers
1
I think you need to validate user enter data is numeric or not. so in this case use jQuery.isNumeric(); in Jquery to validate the user enter data.JQuery Documentation

chandu
- 2,276
- 3
- 20
- 35