HTML JavaScript onChange Handler is not called when updated programatically

后端 未结 6 787
暗喜
暗喜 2021-01-19 04:28

I have found an odd anomaly with HTML text boxes and JavaScript that I have narrowed down to being a html/javascript peculiarity and I\'m hoping someone can educate me on.

6条回答
  •  囚心锁ツ
    2021-01-19 05:04

    The onchange event is not triggered by a programmatic change of the value of the textinput. You have to call the code you want to execute after you change the value yourself.

提交回复
热议问题