“onchange” event delayed in IE? (ok with Firefox)

前端 未结 6 1497
臣服心动
臣服心动 2020-12-10 07:56

It might be a beginner question but I can\'t understand why the onchange event is never called by IE while it works Ok with firefox.



        
6条回答
  •  情歌与酒
    2020-12-10 08:58

    ohhh, I spent some time on that issue as well months ago. I came up with this solution for FF/IE onchange

    $("input[name*='delivery_method']").bind(($.browser.msie ? "click" : "change"), function() {
        //your code here
    });
    

提交回复
热议问题