jQuery Validate插件获得更多控制权 [英] jQuery Validate Plugin get more control

查看:91
本文介绍了jQuery Validate插件获得更多控制权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得更多控制或错误放置?对于两个元素,我也有类似的错误消息,并且我只希望显示其中一个.

How can I get more control or error placement? I have similar error messages for two elements and I want only one of them to be displayed.

推荐答案

您可以使用以下选项控制错误的位置

You can control error placement using the following options

errorElement
errorLabelContainer
errorContainer

在此处查看文档 http://docs.jquery.com/Plugins/Validation/validate#toptions

这些文档有演示和示例代码.它非常有帮助.

These docs have demos and example code.. Its very helpful.

这篇关于jQuery Validate插件获得更多控制权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆