解决这个问题的办法是将错误信息指定到一个特定的位置,validate()方法的参数中可以进行自定义,示例代码如下:
Home > Web Front-end > JS Tutorial > JQuery extension plug-in Validate—6 verification of radio, checkbox, and select_jquery

JQuery extension plug-in Validate—6 verification of radio, checkbox, and select_jquery

WBOY
Release: 2016-05-16 18:02:37
Original
1259 people have browsed it

The effect is as follows:


The way to solve this problem is to specify the error message to a specific location. The parameters of the validate() method can be customized. The sample code is as follows:

Copy code The code is as follows:



Male
Female



The running results are as follows:

In addition: If debug:true is added to the parameter, it will only be used for debugging the form and will not be submitted to the server; submitHandler: function() {} will perform some operations before the form is submitted to the server; remote can be used for Ajax Verification, there seems to be a small bug; there will be some problems when using ASP.NET in combination with validate. Please refer to the blog post of netizen .
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