Home > Article > Web Front-end > jquery default validation rules organized_jquery
(1)required:true Required fields
(2)remote:"check.php" Use the ajax method to call check.php to verify the input value
(3)email:true You must enter the correct format of the email Email
(4)url:true You must enter the URL in the correct format
(5)date:true You must enter the date in the correct format Date verification ie6 error, use with caution
(6)dateISO:true Must be entered Dates in the correct format (ISO), for example: 2009-06-23, 1998/01/22 Only verify the format, not the validity
(7)number:true You must enter a legal number (negative number, decimal)
(8)digits:true You must enter an integer
(9)creditcard: You must enter a legal credit card number
(10)equalTo:"#field" The input value must be the same as #field
(11)accept : Enter a string with a legal suffix (the suffix of the uploaded file)
(12)maxlength:5 Enter a string with a maximum length of 5 (Chinese characters count as one character)
(13)minlength:10 Enter the minimum length It is a string of 10 (Chinese characters count as one character)
(14)rangelength:[5,10] The input length must be a string between 5 and 10") (Chinese characters count as one character)
(15 )range:[5,10] The input value must be between 5 and 10
(16)max:5 The input value cannot be greater than 5
(17)min:10 The input value cannot be less than 10