为什么如果是自动完成对JavaScript的onchange事件不火? [英] Why does the javascript onchange event not fire if autocomplete is on?
问题描述
我用onchange事件的文本框。为什么当用户使用的自动完成功能来填充文本框此事件不火?
I have a textbox with an onchange event. Why does this event not fire when the user uses the autocomplete feature to populate the textbox?
我在Internet Explorer工作。有没有办法解决这个问题,没有我不得不禁用自动完成功能标准和相对简单的解决方案?
I am working with Internet Explorer. Is there a standard and relatively simple solution to workaround this problem, without me having to disable the autocomplete feature?
推荐答案
我最后一次有这样的问题,我结束了使用Internet Explorer的 onpropertychange
事件来代替。我读到有关这里MSDN :它是推荐的方法来解决它。
Last time I had that issue, I ended up using the onpropertychange
event for Internet Explorer instead. I read about that here on MSDN: it is the recommended way to get around it.
这篇关于为什么如果是自动完成对JavaScript的onchange事件不火?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!