New issue

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 的多个字段添加不同规则 #203

niceue opened this Issue Dec 29, 2015 · 1 comment


None yet
1 participant
Copy link

niceue commented Dec 29, 2015

<input name="num" id="num1" data-rule="required;range(0~100)">
<input name="num" id="num2" data-rule="required;range(0~200)">
<input name="num" id="num3" data-rule="required;range(0~300)">

以上字段 name 相同,但是规则不同。必须设置不同的 id,才能分别验证不同规则和分别提示消息

@niceue niceue added this to the 0.9.0 milestone Dec 29, 2015

@niceue niceue closed this in 7ead365 Dec 29, 2015

@niceue niceue added improve new and removed new labels Dec 30, 2015


This comment has been minimized.

Copy link
Owner Author

niceue commented Dec 30, 2015

相关问题 #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment