Help!? IE9: onChange event doesn't fire when value is modified by an onkeydown script and user tabs away

后端 未结 1 669
孤城傲影
孤城傲影 2021-01-07 02:06

We have a custom numeric textbox in asp.net. In the oninput event, the input is checked on invalid characters, and the value of the textbox is set. The OnChange event is han

相关标签:
1条回答
  • 2021-01-07 02:48

    There is a bug of IE9 about onchange event, therefore maybe you could add onpropertychange event on the input(bind both two events):

    <input type="text" onKeyDown="this.value=this.value;" onChange="alert('test');" onpropertychange="alert('change');" />
    

    This is just a workaround, hope this help.

    0 讨论(0)
提交回复
热议问题