jQuery更改事件在IE11中无效

use*_*186 8 jquery internet-explorer-11

我在输入文本框中使用jQuery更改事件.它似乎在Chrome和Firefox中正常工作,但在IE11中却没有.是否还有其他类似于IE中支持的更改的事件.

jQuery 1.7.

<body>
   <input id="search"></input>
</body>

$('#search').on('change',function(){
   alert('hii');
})
Run Code Online (Sandbox Code Playgroud)

jsfiddle: - https://jsfiddle.net/7v0ohes8/

Pan*_*kar 5

我认为您需要在keyup该事件上绑定事件

$('#search').on('keyup',function(){
   alert('hii');
})
Run Code Online (Sandbox Code Playgroud)

JsFiddle

这是相同答案的另一个参考