为什么如果是自动完成对JavaScript的onchange事件不火? [英] Why does the javascript onchange event not fire if autocomplete is on?

查看:128
本文介绍了为什么如果是自动完成对JavaScript的onchange事件不火?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆