I require have a textbox to enter a human height. I require to do this using jquery. Is there a plugin or code sample that I can use to, to perform the validation. Can someone please help me to validate the textbox using jquery.
Share
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.
You’re going to want to use regex:
That’s not the greatest regex but it will check anything like 9′ 5″ or 5’7″ or 5’11”.
For more regex stuff check out: Regex Info
Edit: Better regex may be something like
You’ll have to test it, on lunch break and need to get back to work.