激活 jQuery 手风琴部分并出现验证错误
我在 ASP.NET MVC 应用程序中使用 xVal 进行客户端验证。由于其中一个表单中有太多字段,因此我将其分成几部分,并使用 jQuery 手风琴同时显示一个部分。 当用户单击“提交”时,有没有办法激活包含验证错误的手风琴部分?
I am using xVal for client validation in an ASP.NET MVC application. Since I have too many fields in one of the forms, I split it into sections and used jQuery accordion to display one section at the same time.
Is there a way to activate the accordion section which contains validation errors when the user clicks submit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这个代码,它不会激活面板,但会显示它(相同的结果)
Try this code, it won't activate the panel but it will show it (same result)