jQuery验证-仅显示一条错误消息 [英] jQuery validation - only show one error message

查看:91
本文介绍了jQuery验证-仅显示一条错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jQuery验证插件时,是否只有一种方法可以显示最新抛出的错误消息?

Is there a way to only show the latest error-message thrown, when using the validation-plugin for jQuery?

推荐答案

我认为您应该研究validate方法的groupserrorPlacement选项.那应该为您解决.

I think you should look into the groups and errorPlacement options to the validate method. That should work out for you.

jQuery验证validate([options])

这篇关于jQuery验证-仅显示一条错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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