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

规则required支持jQuery选择器参数 #137

Closed
niceue opened this Issue Jul 7, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@niceue
Copy link
Owner

niceue commented Jul 7, 2014

<input type="checkbox" id="agree" value="1">
<input type="text" name="name" data-rule="required(#agree:checked)">

建议使用如下选择器:

  • #id:checked #id:not(:checked)
  • #id:selected #id:not(:selected)
  • #id:enabled #id:disabled
  • #id:filled #id:not(:filled)

@niceue niceue added this to the 0.8.0 milestone Jul 7, 2014

@niceue niceue added feature labels Jul 7, 2014

@niceue niceue closed this in a7ca6c4 Jul 7, 2014

niceue added a commit that referenced this issue Jul 11, 2014

@smallmacro

This comment has been minimized.

Copy link

smallmacro commented Jul 11, 2014

nice!谢谢@jony

@niceue niceue added the new label Jul 12, 2014

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