IE下checkbox无法立即响应onchange的解决方法

来源:互联网 发布:和大胸妹子嘿嘿知乎 编辑:程序博客网 时间:2024/05/22 02:25

If you click on a radio button, IE seems to wait with firing the change event until you leave the button,

which is consistent with the behavior on other input fields (like text), but kinda unintuitive.The following piece of code fixes this behavior for me:

$(function () {    if ($.browser.msie) {        $('input:radio').click(function () {            this.blur();            this.focus();        });    }});

原创粉丝点击