9

I am using jQuery change event on a input text box. It seems to work properly in Chrome and Firefox but not in IE11. Is there any other event similar to change which is supported in IE.

jQuery 1.7.

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

$('#search').on('change',function(){
   alert('hii');
})

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

c0deNinja
  • 3,956
  • 1
  • 29
  • 45
user1010186
  • 171
  • 1
  • 4
  • 14

2 Answers2

6

I think you need to bind event on keyup that would work

$('#search').on('keyup',function(){
   alert('hii');
})

JsFiddle

Here is another reference of Same Answer

Community
  • 1
  • 1
Pankaj Parkar
  • 134,766
  • 23
  • 234
  • 299
1

The issue is specific to certain version of ie11, mine is from MS virtualbox machine. If change alone does not work, try this combo:

$('#search').on('change blur',function(){
   alert('hii');
})