开发者

Need to validate Textbox to enter certain condition using Javascript

开发者 https://www.devze.com 2023-01-21 04:05 出处:网络
Need to validate textbox using javascript as below condition : Length of the letter should be atleast 6

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

精彩评论

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