【发布时间】:2013-08-02 14:29:58
【问题描述】:
我有三个输入字段,input1、input2 和 input3。
当input1的值改变时,input2也相应设置:
$('input[name=input1]').change(function () {
console.debug("input1");
$('input[name=input2]').val($(this).val());
$('input[name=input3]').prop("disabled", true);
});
$('input[name=input2]').change(function () {
console.debug("input2");
...
});
它可以工作,但不能在 IE10 上。它不会在控制台“input1”和“input2”上打印,也不会更改 input2 的值。
编辑
问题似乎也在 IE 中
如果我将on 与keyup 一起使用,它似乎可以工作。
但是如果用户使用鼠标选择一个缓存值呢?
mouseenter 有一个奇怪的效果。
【问题讨论】:
标签: jquery internet-explorer internet-explorer-10