.bind('input',function(){})在IE8中不起作用 [英] .bind('input', function(){}) not working in IE8

查看:84
本文介绍了.bind('input',function(){})在IE8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在用jQuery使用 .bind('input'),因为它似乎是检测它们是否复制/粘贴到框中的最佳解决方案,或者只是输入然后从浏览器中选择下拉菜单。我与其他人的问题,如 change(),至少在我看来,它们只会在用户对方框的焦点丢失时触发。

I've been using .bind('input') with jQuery because it seems to best solution for detecting if they copy/paste into the box, or just type and then select from the browser given drop down menu. My problem with others such as change() is that, at least for me, they only trigger when the user's focus on the box is lost.

我的问题是 .bind('input')在IE8中对我不起作用,但是有效在FF4 / 5中。我一直试图寻找替代方案,但已经出现了问题。有什么建议吗?

My problem is that .bind('input') doesn't work for me in IE8, yet works in FF4/5. I have tried looking for alternatives to this but have come up emtpy. Any suggestion?

推荐答案

IE9下不支持输入事件。您可以在此处获取有关输入事件的更多信息: http://help.dottoro.com/ljhxklln.php

The input event is not supported below IE9. You can get more information about the input event here: http://help.dottoro.com/ljhxklln.php

我还没有测试过,但是这份文件说你可以使用 onpropertychange 事件。

I haven't tested yet, but this document says you can use a onpropertychange event instead.

这篇关于.bind('input',function(){})在IE8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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