Skip to content
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

消息占位的属性data-for改为for #49

Closed
niceue opened this issue Oct 3, 2013 · 0 comments
Closed

消息占位的属性data-for改为for #49

niceue opened this issue Oct 3, 2013 · 0 comments
Assignees
Milestone

Comments

@niceue
Copy link
Owner

niceue commented Oct 3, 2013

<input name="fieldname" id="fieldid" data-rule="required">

以前版本中要实现消息占位需要这样:

<span class="msg-box n-right" data-for="fieldname"></span>

0.5.0后更加简单:

<span class="msg-box" for="fieldid"></span>

0.5.0后,for属性的表现更像是一个label,对应的是input的id

@ghost ghost assigned niceue Oct 3, 2013
@niceue niceue closed this as completed Oct 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant