javascript - live() 更改在 IE8 上的 jquery 1.4.2 中不起作用

标签 javascript internet-explorer internet-explorer-8 jquery

我一直在 IE8 中运行以下 jquery 代码(使用 jquery 1.4.2)。这适用于所有其他浏览器,如 Mozilla、IE9 等,但不适用于 IE8。

谁能告诉我如何解决这个问题或使用类似的代码来执行相同的“更改”功能?

$('.input-timesheet-type').live('change', function () {
   totalCount($(this).attr('data-teamid'));
});

最佳答案

虽然IE8支持live()live() has some problems使用 change() 事件:

Possible event values: click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup

Currently not supported: blur, focus, mouseenter, mouseleave, change, submit

关于javascript - live() 更改在 IE8 上的 jquery 1.4.2 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15559144/

相关文章:

javascript - window.location.replace 为 Phonegap

javascript - 如何从所有功能中返回单个字段?

javascript - Bootstrap 中的子菜单下拉布局

jquery - Bootstrap Modal 无法在 IE 中工作,尝试了 Stack 上的所有其他解决方案

javascript - Window.opener 在 IE8 中未定义?

html - IE8 支持 CSS 媒体查询

javascript - onclick 对里面的元素做一些事情

html - IE7 CSS z-index 问题在任何其他浏览器上都不明显

jQuery fadeIn 在 Internet Explorer 中不工作

javascript - 不支持对象或属性