Home  >  Article  >  Web Front-end  >  JQuery extension plug-in Validate 3 sets error information through parameters_jquery

JQuery extension plug-in Validate 3 sets error information through parameters_jquery

WBOY
WBOYOriginal
2016-05-16 18:02:41881browse

The errors ultimately displayed on the page are divided into two types: the first is the default error message, which has been defined in the plug-in and can be modified manually.
The second is the error message specified by parameters. If not specified, the default error message will be used. Modify the js of the previous example as follows:

Copy the code The code is as follows:



html is the same as the previous example
Based on the previous example, a messages item is added, specifying an object type value , basically corresponds to rules, and the error message of email is not specified. The running results are as follows:

Source code download
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn