开发者

.change being buggy in IE

I have not been able to reproduce this myself but we have a form where once the value is changed (using .change()) the field will fire off to a save.php to update the value. However users have said that this SOMETIMES will not happen in Internet Explorer, even versions above 6. Seemingly happens more often with a copy paste?

I have look开发者_开发百科ed into the cache and that is not the problem, so the only thing I can think of is that the .change() is not working correctly.

This also only happens on certain fields.

Any pointers as to why this may be will be greatly appreciated!


Instead of using change, try .keyup() , that should work in IE6 even when ctrl v is clicked and cover you even if focus isn't taken off the input, then you can also use .focus() to cover the Right Click + Paste.


You might be experiencing the bug where IE won't fire a change until focus is lost on radio and checkbox fields.

The solution is to listen to onclick for those fields (and those fields only) - this works consistently across all browsers I have tested.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜