jQuery change event not working in IE11

前端 未结 2 772
余生分开走
余生分开走 2021-01-12 00:55

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 sup

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 01:30

    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

提交回复
热议问题