Jquery formvalidator Form validation plug-in

Source: Internet
Author: User

The plug-in currently prompts an error. There are two modes: showword and showalert, that is, text and window prompts.
Currently, five verification methods are supported: inputvalidator (Control of the character length, value range, and number of selections of the input, textarea, and select controls), comparevalidator (two objects can be compared. Currently, strings and numbers can be compared), ajaxvalidator (data verification is performed on the server through Ajax), and regexvalidator (a scalable Regular Expression Library is provided), functionvalidator (allow users to use external functions for verification)
ForJquery formvalidator Form Verification plug-in ver2.4 provides VerificationCodeGenerate verification code in batches.

Plugin download:Http://www.cnblogs.com/wzmaodong/archive/2008/01/11/1034901.html
Verification Code Generator:Http://www.cnblogs.com/wzmaodong/archive/2008/04/21/1164317.html

Inputvalidator:
Value size (numeric and numeric) range, value length, number of choices (for checkbox, radio, select)
The above are all interval ranges. If the range is greater than or less than the set value, you can make a precise prompt.

Comparevalidator:
The value range of the two form elements (numeric and numeric)

Regexvalidator:
Validate the format of input values. You can write regular expressions by yourself, or use the regular expressions of the extension library.

Ajaxvalidator:
Verify the value entered by the user on the server. For example, whether a user exists

Functionvalidator:
External functions can be used for verification and can be used as a processing process to customize the returned error information. The current extension Library provides some functions for calling.

The plug-in provides functions for verification.
Initconfig (): Check the configuration information of the group. For example, selecting the error mode, checking the callback function after successful/failed, and checking whether the function is in debug mode
Pageisvalid (): checks the entire validation Group
Isonevalid (): verifies a single form Element
Getlength (): return the length of the form element, number of options selected
Setfailstate (): sets the error message
Retsettipstate (): restores all prompts of form elements in the validation group to the onshow state.

Reproduced in: http://www.cnblogs.com/wzmaodong/archive/2008/04/27/1173382.html

 

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.