[英]How to show jquery form validation plugin errors below the form fields
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 . 我正在使用jQuery表单验证插件来验证表单。。它工作正常。.但是问题是,它在同一行的表单字段旁边显示错误消息。.我想在文本字段下方显示此错误消息,例如此示例中的第一种形式 。 I don't want to redefine error messages in validate function.
我不想在validate函数中重新定义错误消息。 What is the shortest way.
最快捷的方法是什么。
I am applying plugin like this: 我正在应用这样的插件:
$(".ValidateForm").validate();
Thanks 谢谢
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. 我限制了
<td></td>
的宽度,在该宽度中呈现了表单元素,并且由于空间不足,错误消息显示在表单字段下方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.