Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本框并使用 jquery 完成验证,但验证错误显示在文本框旁边。如何对齐验证错误以显示在特定位置。
如果您使用 jquery validate 插件,只需添加此代码
$("element").validate({ errorLabelContainer: $("element"), errorClass: ".class" });