如何在表单字段下方显示 jquery 表单验证插件错误

发布于 2024-12-08 03:30:09 字数 379 浏览 1 评论 0 原文

我正在使用 jQuery 表单验证插件 来验证表单..它正在工作完美..但问题是它在同一行的表单字段旁边显示错误消息..我想在文本字段下方显示此错误消息,例如 本例中的第一种形式。我不想在验证函数中重新定义错误消息。最短路线是什么。

我正在应用这样的插件:

$(".ValidateForm").validate();

谢谢

I am using jQuery form validation plugin to verify the form.. It is working perfectly.. But problem is that it is showing error message next to form field in the same row.. I want to show this error message below the text field like first form in this example. I don't want to redefine error messages in validate function. What is the shortest way.

I am applying plugin like this:

$(".ValidateForm").validate();

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一桥轻雨一伞开 2024-12-15 03:30:09

得到了我的答案。由于空间不足,我限制了 的宽度,其中呈现表单元素,并且错误消息显示在表单字段下方。

Got my answer. I restricted the width of the <td></td> in which form element is rendered and error message is shown below the form fields because of low space.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文