Reprinted from: Corn string
And http://www.cnblogs.com/best/archive/2011/09/05/2167817.html Kissy: small, flexible, simple, practical, pleasant coding, and happy development. The Kissy principle is true. I just made a registration page and used the Form validation component of kissy.
Example above:
Jquery extension validate:
Jquery.
This is one of the problems encountered in the work today. Because the business needs to add a new check logic when the original form is submitted.The original logic is as follows (the code is Simplified):When a form is submitted, the check method is used to verifyformonsubmit="return check ();"> method Code:function Check () {if(...) {alert ("xxx");returnfalse;}} because a new logic is added, I have added a new method that adjusts the structure of the code:formonsubmit="return Newcheck ();"> me
JQuery. Validate verification Library1. Download jquery. validate, here I provide jquery-validation-1.9.0, click to download
Default verification rules
Copy codeThe Code is as follows: (1) required: true mandatory field
(2) remote: "check. php" uses ajax to call check. php t
Jquery. validate is a B/S client verification framework based on jquery. With the advantages of jquery, we can quickly verify some common input, greatly improving the development efficiency, the following are my study notes:
Jquery extension
The previous article introduced the basics of the introduction of jquery validate form validation, detailed in the jquery validate form validation Primer, today's article delves into jquery Validate form verification, the followin
JQuery Validate sets the instance code for onkeyup verification, jqueryonkeyup
The jQuery Validate plug-in provides powerful form verification functions to simplify form verification on the client side. It also provides a large number of custom options to meet various application needs. The following is a piece of code
Use jquery. validate, jqueryvalidate
Introduction to jquery. validateI haven't written JavaScript for several years, and the data is slowly organized and the format is also messy.Mainly divided into several partsJquery. validate basic usageJquery. validate API descriptionJqu
:{Firstname: "required ",Email :{Required: True,Email: True},Password :{Required: True,Minlength: 5},Confirm_password :{Required: True,Minlength: 5,Failed to: "# password"}},Messages :{Firstname: "enter your name ",Email :{Required: "Enter the email address ",Email: "enter the correct email address"},Password :{Required: "enter the password ",Minlength: jquery. Format ("the password cannot be less than {0} characters ")},Confirm_password :{Required:
"),Range: jQuery. validator. format ("enter a value between {0} and {1 "),Max: jQuery. validator. format ("enter a maximum value of {0 "),Min: jQuery. validator. format ("enter a minimum value of {0 ")});We recommend that you add this file to messages_cn.js and introduce it on the page.
Iv. Usage1. Write the validation rule to the control.Copy codeThe Code is as
Previously used jquery validator to do some projects, but recently picked up, discovery features upgraded, some of the previous use of the method is already in the error, and then rearrange a blog to summarize the latest jquery form validate use tutorial.
How to use JQuery Valid
Default category: 20:35:01 read 123 comments 0 font size: large, medium, and smallJquery. validate is a verification framework of jquery. With the advantages of jquery, we can quickly verify some common input and expand our own verification methods, it also provides good support for internationalization.Note: JQuery ve
Form Verification is the most common in daily projects. Using a good JS library can help us get twice the result with half the effort. Jquery. Validate is undoubtedly a good choice.
Jquery. validate. This verification library is a jquery plug-in written by bassistance.de. ba
This article describes how to submit the validate and form plug-ins in jquery. For more information, see the following section: This article mainly discusses jquery. combine validate with jquery. form to verify and submit the form.
Method 1: Use the submitHandler option of
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 string with a valid suffix name",Maxlength:jQuer
Detailed description of the jQuery validation plug-in Validate, jqueryvalidate
The most common use of JavaScript is form verification. jQuery, as an excellent JavaScript library, also provides an excellent form verification plug-in-Validation. Validation is one of the oldest jQuery plug-ins. It has been verified by dif
JQuery Validation PluginAdvantages:1. Form validation is simple and convenient, and many configuration items are available2. Internationalization, you can customize the prompt informationCommand-line InstallationInitialize BowerBower InitInstalling jquery using BowerBower Install jquery--save-devInstalling the Jquery-
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. All bundled methods use English as an error
[Jquery. validate] the custom method implements logical verification of "mobile phone number or landline phone number", jqueryvalidate
In recent project development, the following requirement is met: "Enter at least one mobile phone number or fixed phone number", as shown in:
The jquery. validate. js verification comp
Jquery validate details 1 JQuery Verification1. Import the js Library
Ii. Default verification rules
(1) required: true Mandatory Field(2) remote: check. php Use ajax to call check. php to verify the input value(3) email: true You must enter an email in the correct format.(4) url: true Enter the URL in the
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,
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.