如何以蚂蚁设计形式滚动到第一个错误字段?
我有一个简单的表单,其中有许多字段用于输入。达到提交按钮后,上字段被隐藏了。我推动提交后,如何滚动到第一个错误字段?
I have a simple Form with many fields for input. After having reached Submit button upper fields are getting hidden. How is it possible to scroll to first error field after I pushed on Submit ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
scrolltofirsterror
属性。You can use the
scrollToFirstError
attribute.尝试使用HTML属性“必需”
try with the HTML Attribute "required"