JavascriptZifaFormValid0.1 Form Verification code package download Introduction: Form Verification is implemented completely through html without the need to write javascript programs. It supports multi-Condition Verification of a form element.
It is unrelated to the server program and is completely client-side.
Usage: Add onsubmit = "return validator (this)" to the form to be verified )"
Set in the form element to be verified, valid (Verification rule), errmsg (prompt message), multiple verification use | all are separated!
Verification rule parameters:
The Code is as follows:
Required
IsEmail must be in the Email format
Whether the comparison value of eqaul is the same with that of another component. The component name is added with the attribute eqaulName.
Whether the comparison value of gt and another component is greater than that of another component. The component name is added with the property eqaulName.
Whether isNumber is a number
Whether the isInt is an integer
Whether isTime is in time format
Whether isDate is in Date Format
The content will be added in the next version to customize the message prompt mode and the custom callback function.
Download locally packaged files