Input event not working if value is changed with jQuery val() or JavaScript

后端 未结 7 2107
孤城傲影
孤城傲影 2020-12-28 16:12

If I change the value of an input field programmatically, the input and change events are not firing. For example, I have this scenario:

7条回答
  •  一生所求
    2020-12-28 16:34

    Trigger didn't work for. Creating an event and dispatching with native JavaScript did the work.

    Source: https://stackoverflow.com/a/41593131/6825339

     
    

提交回复
热议问题