使用旧版的jquery 1.4.2时,在IE下不响应select的change事件(event),试过很多办法,包括bind(“change click”,…)等等,都没有效果。无意间在使用了.delegate(),意外发现问题得到解决。
在调用$(selector).live(“change”,)前,加入下面的语句:
if($.browser.msie){
$("body").delegate("select","change",function(){
//do nothing to fix the IE bugs for unfired change event.
});
}转载请注明文章来自糗世界博客
