integersCreditCardtrue,//Verify credit card numberAccept: ""//Please enter a string with a valid suffix (the suffix of the uploaded file)Equalto: "ID Name"//Verify that the contents of the two input boxes are the samePhoneus:true //Verify the American phone numberregex:/Regular Expression///validation rules for Addmethod extensions above}} messages:{Name:"Name cannot be empty",//Custom hint information key:value form key is the element to be valida
Defining Chinese messagesvar cnmsg = {Required: "Required field",Remote: "Please fix this field",Email: "Please enter the correct format of e-mail",URL: "Please enter a valid URL",Date: "Please enter a valid date",Dateiso: "Please enter a valid date (ISO).",Number: "Please enter a valid digit",Digits: "Can only enter integers",CreditCard: "Please enter a valid credit card number",Equalto: "Please enter the same value again",Accept: "Please enter a str
Jquery verifies the email format and displays the submit button. jquery verifies the email button.
Brief tutorialSimple, generous, and intuitive user interfaces are our favorite webpage designs. This article introduces such a design style.
How can we make the page simple, generous, and user-friendly? Most website for
Validate verification plug-ins, built-in rich validation rules, as well as flexible custom rule interface, HTML, CSS and JS between the low coupling allows you to free layout and rich style, support Input,select,textarea validation.
Description
Browser support: ie7+, Chrome, Firefox, Safari, Mobile Browser
jquery version: 1.7.0+
UsageLoad
Jquery Validate related parameters and common custom validation rulesFirst, the official website address: http://bassistance.de/jquery-plugins/jquery-plugin-validationSecond, the default check rule(1), Required:true must lose field (2), Remote: "remote-valid.jsp" using Ajax method call remote-valid.jsp
JQuery. validate does not support solutions in ie8. jquery. validateie8
I. Back the problematic code in ie8
1. The JQuery. validate verification framework verifies whether the input in the 1 The name attribute is consistent with t
This article introduces the jquery validate form verification, mainly uses the Jquery.metadata.js officers transferred Guevara rule to write directly in the class attribute and the definition error message prompt, shares for everybody to refer, the concrete content is as follows
1, add a different plug-in jquery.metadata.js and write the validation rules in the control.2, need to rewrite the way the trigge
Validate is the jquery extension plug-in used for client verification of the B/S structure. Two JS files must be referenced during use, which are:
1. Basic usage: set verification rules through styles
Script Type
=
"
Text/JavaScript
"
>
$ (
Function
() {$ (
"
# Signupform
"
). Validate ();});
//
Verify the selected form
/
Validate is a good jq plug-in that provides powerful verification functions to simplify form verification on the client. It also provides a large number of custom options to meet various application needs. This plug-in is bundled with a set of useful verification methods, including URL and email verification, and provides an API for Writing user-defined methods. Validat
The JQuery Validate plug-in provides a powerful validation feature for forms, making client form validation simpler, while providing a wide range of customization options to meet the needs of the application. The plug-in bundles a set of useful authentication methods, including URL and email authentication, while providing an API for writing user-defined methods.
overwrite the default options. The jquery validate plugin defaults to only the correct and error-proofing prompts, and lacks our usual help tips. To solve this problem, I studied the source code of the plug-in, found that the plug-in itself provides onfocusin (the checksum element gets the focus of the call) and Onfocusout (when the checksum element loses focus) these two functions. By modifying these two
Jquery validate plugin advanced form verification, jqueryvalidate
The validate plug-in provides another method to add verification for a form without changing the HTML of the field. In addition, this plug-in provides a wide range of additional options to control how it works. We pass an object volume to the validate ()
passwords entered twice "}}});});
In addition to true/false, required can also use expressions or functions, such
$ ("# Form2"). validate ({rules: {funcvalidate: {required: function () {return $ ("# password"). val ()! = "" ;}}, Messages: {funcvalidate: {required: "required if a password exists "}}});
Html
PasswordConfirm PasswordCondition Verification
4. Use meta to customize verification information
Set meta with JS first
$ ("# Form3").
The JQuery validate plug-in bundles a set of useful authentication methods, including URL and email authentication, while providing an API for writing user-defined methods. All bundled methods use English as an error message by default and are translated into 37 other languages.
first section: jQuery Validation makes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.