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