Introduction: Completely through HTML does not need to write JS program can realize form verification function, can support a TABLE element multiple condition verification
and server-side programs are not related to the full client approach.
How to: Add onsubmit= "return validator" to the form you want to validate
Set in the form symbol to be validated, valid (validation rule), ErrMsg (Prompt message), multiple authentication use | all delimited!
Validation Rule parameters:
Copy Code code as follows:
Required must fill
Isemail must be in email format
Eqaul and another component are compared to the same value, the contrast of the component name in the component plus attributes Eqaulname
If the GT and another component are compared to the value of another component, the component name of the comparison is in the component plus attribute Eqaulname
Whether Isnumber is a number
Whether Isint is an orthopedic
Whether the istime is a time format
Whether the isDate is a date format
The next version will add content, customize message prompts, and customize callback functions.
Local packaged File download