浏览器检测-复选框更改事件
我正在创建一个具有一些奇特的交互性的表单,这取决于单选按钮的更改事件。由于 ie 在聚焦另一个元素之前不会触发此事件,因此我需要对代码进行分支,但想要沿着功能检测而不是浏览器检测路线进行。
查看一些资源(http://api.jquery.com/jQuery.support/,http://kangax .github.com/cft/)我找不到任何检测 ie 有缺陷的单选/复选框更改事件的实现。
有谁知道我如何能够检测到它?
I'm creating a form with some fancy interactivity which depends on the change event of radio buttons. As ie doesn't trigger this event until another element is focused I need to branch my code, but want to go down the feature detection rather than browser detection route.
Looking at a few resources (http://api.jquery.com/jQuery.support/, http://kangax.github.com/cft/) I can't find any implementation of detecting ie's buggy radio/checkbox change events.
Does anyone know how I might be able to detect it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,点击和keyup 是唯一值得信任的事件。
In my experience, click and keyup are the only event to trust in this case.