开发者

Need to validate Textbox to enter certain condition using Javascript

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 开发者_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}$/;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜