Need to validate Textbox to enter certain condition using Javascript
Need to validate textbox using javascript as below condition :
- Length of the letter should be atleast 6
- First Letter should be Capital
- Atleast One Numeric value should be there
- Atleast 开发者_C百科one special character should be there
How to do that?
Form validation:
- http://www.webcheatsheet.com/javascript/form_validation.php
- http://www.w3schools.com/JS/js_form_validation.asp
JavaScript regular expressions:
- http://www.regular-expressions.info/javascript.html
- http://www.javascriptkit.com/javatutors/redev2.shtml
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}$/;
精彩评论