Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 18:02:41
Original
934 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template