Change event not firing on text input using jquery in Chrome

前端 未结 4 541
有刺的猬
有刺的猬 2021-01-17 14:07

I have a problem with a jquery change event on a text input that works as expected in Firefox and IE but not in Chrome. I also have a keyup event on the text input to manipu

4条回答
  •  时光说笑
    2021-01-17 14:27

    You can use the input event that works like a charm:

    $('#search-form .term').bind('input', function(){
      console.log('this actually works');
    });
    

    Source: https://gist.github.com/brandonaaskov/1596867

提交回复
热议问题