Live Demo: http://jsfiddle.net/thisizmonster/DveuB/
How can I change this so that the input only allows the characters A-Z, a-z, 0-9 while typing, without using a regular expression?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you also want to accept spaces:
If you don’t want to accept spaces then remove the
if(ew == 32) return true;JSFiddle