jQuery change event not working in IE11

前端 未结 2 756
余生分开走
余生分开走 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条回答
  • 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

    0 讨论(0)
  • 2021-01-12 01:42

    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');
    })
    
    0 讨论(0)
提交回复
热议问题