We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当页面上存在多个name相同的元素时,多个表单的validator之间会相互冲突。
https://github.com/aralejs/validator/blob/master/src/item.js#L24
var element = $(this.get('element')), type = element.attr('type');
将$(this.get('element'))改成类似与$(this.get('element'), validator.element)。
在富客户端程序中,经常有多个同类型的表单同时存在的情况,最好能避免相互之间的冲突。
The text was updated successfully, but these errors were encountered:
这边的 this.get('element') 就是当前 Item 的 element , 他这边写绕了, 直接 this.element 即可.
你的问题, name 多个, 应该是再传入 element 参数时区分 选择器
Sorry, something went wrong.
0fcbb8e
No branches or pull requests
当页面上存在多个name相同的元素时,多个表单的validator之间会相互冲突。
https://github.com/aralejs/validator/blob/master/src/item.js#L24
将$(this.get('element'))改成类似与$(this.get('element'), validator.element)。
在富客户端程序中,经常有多个同类型的表单同时存在的情况,最好能避免相互之间的冲突。
The text was updated successfully, but these errors were encountered: