0

Need to validate textbox using javascript as below condition :

  1. Length of the letter should be atleast 6
  2. First Letter should be Capital
  3. Atleast One Numeric value should be there
  4. Atleast one special character should be there

How to do that?

2
  • ... probably regular expressions. Consider adding the regex tag to your question. Commented Oct 20, 2010 at 17:26
  • BTW, if I may ask a question here: Is there a web-site that creates regular expression literals based on such input parameters? Commented Oct 20, 2010 at 17:28

2 Answers 2

1

Form validation:

JavaScript regular expressions:

Sign up to request clarification or add additional context in comments.

Comments

0

Java Script condition for text field validation for name

var ck_name = /^[A-Za-z0-9]{2,75}$/;

text field validation for Number

var ck_number=/^[0-9]{1,10}$/;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.