The jQueryformValidator Form Verification plug-in is open-source with API help, source code, and example _ jquery
Source: Internet
Author: User
The ajaxValidator function has an error after submission. When it stays on this page, triggering verification again will keep the prompt content in the onload status.
Bug Description: The ajaxValidator function has an error after submission. If it stays on this page, triggering verification again will keep the prompt content in the onload status.
This bug has been fixed. Please download it again.
2008/7/17 14:12:00 jQuery formValidator 3.1ver
1. Add the empty attribute for inputValidator. Used to set whether the control text value can be empty on both sides. For details, see the password verification code in demo1.
This attribute is an object. The default value is {leftempty: true, rightempty: true, emptyerror: null}
Leftempty: whether to allow null on the left
Rightempty: whether to allow null on the right
Emptyerror: the prompt when this error occurs. If it is null, The onerror attribute is used to prompt the error.
Note: it can only be used when type: "size" is used, that is, when the length is compared.
2. Modify the syntax of the Automatic Build prompt layer. Add the relativeid attribute to the formValidator function.
Relativeid: indicates the relative positioning control ID of the prompt layer. If it is null, the ID of the current check control is used.
Tipid: indicates the ID of the automatically created prompt layer. If it is null, use the ID + "Tip" of the current validation control to name it.
3. Fixed the bug of the beforesend attribute in the ajaxValidator function. The Code forgets to pass its unique parameter.
4. Fixed the bug where the ajaxValidator function could not obtain Chinese characters in the background.
5. Updated the upgrade record, user manual, and added two questions.
1. On-site demonstration
Http://img.jb51.net/online/formValidator3.1/demo.html
2. Main Functions of the jQuery pageValidator plug-in
Supports verification of all types of client controls
Supports all the selector Syntax of jQuery, as long as the control has a unique ID and type attribute
Supports expansion of functions and regular expressions. The extension library formValidatorReg. js is provided. You can add and modify the content freely.
Two verification modes are supported. First: Text prompt (showword mode); Second: pop-up window prompt (showalert Mode)
Multiple Validation groups are supported. If a page has multiple submit buttons and you have to submit them separately, you must perform different verification before submitting them. Therefore, you must use the verification group function.
Supports information prompting in four states, allowing you to flexibly control whether or not four States are displayed. First: prompt when you open the webpage; Second: prompt when you get the focus; Third: prompt when the focus is lost, and fourth: error message indicating verification failure when the focus is lost.
Supports automatic creation of the prompt layer. Can be precisely located.
Supports custom error message.
Supports control of character length, value range, and number of selections. The value range supports the numeric and numeric types. The selected number supports three controls: radio, checkbox, and select.
Comparison of Two control values is supported. Currently, you can compare string and numeric types.
Server-side verification is supported.
Supports validation of input formats.
3. jQuery formValidator plug-in API help document
Click here for help documentation
4. Download API help, source code, and examples
Http://xiazai.jb51.net/jslib/formValidator2.4.rar
Http://xiazai.jb51.net/jslib/formValidator3.1.rar
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