0

如果用户做错了什么,当错误消息出现验证时,屏幕阅读器应该读取该错误吗?任何屏幕阅读器兼容、可访问、不显眼的 jquery 表单验证插件?

以及用户如何知道哪个表单字段是强制性的?

我的问题不是要使用fieldset,legendlabel?

4

2 回答 2

3

You can use the standard jQuery validation plugin and write your own validate() which collects the errors on submit and displays them in an alert(), rather than relying on showing and hiding divs/spans. alert() is considered to be screen reader compatible according to WebAIM.

http://docs.jquery.com/Plugins/Validation

于 2010-01-31T05:42:19.983 回答
0

使用警报功能来显示错误。标准做法似乎是在必填表单字段的任何必填标签上加上 *。

于 2010-01-31T20:04:04.667 回答