【发布时间】:2009-10-21 16:29:09
【问题描述】:
我将一个事件绑定到复选框的更改或单击事件,这在 Firefox 中运行良好,但在 IE 中,我必须在触发事件之前单击其他任何位置(导致模糊)事件。
我已阅读并相信这与 IE 触发事件的方式有关,但无论如何我可以绕过它吗?
关键是它是一个流畅的搜索功能,不需要点击搜索按钮
$('#sidebar .itemSearchModule-Form input[type=checkbox]').click(function() {
$('#sidebar .itemSearchModule-Form .saveButton').click();
});
【问题讨论】:
-
你能发布你的代码吗?我已经在 IE6 和 IE7 的复选框上使用了 click 事件,没有任何问题。
-
jsbin.com/ovexi "click" 在 IE6/IE7 上对我来说很好用
标签: javascript jquery internet-explorer checkbox jquery-events