[英]JS works in Safari but not IE9 - Can anyone help to make this work?
event.target.value
where's the event
variable coming from? event.target.value
event
变量来自哪里? Maybe you forgot to specify the parameter? 也许您忘记了指定参数?
Try: 尝试:
document.getElementById('filter').onchange = function (event) {
document.getElementById('field').value = event.target.value
}
document.getElementById('filter').onchange = function (event) {
document.getElementById('field').value = event.target.value
}
Have you enabled JS in IE9? 您是否在IE9中启用了JS?
If not, then do this in IE9: 1. Click on the "Tools" icon. 如果不是,则在IE9中执行以下操作:1.单击“工具”图标。 (Tools icon is on the top right-hand corner of IE9, or Tools can also be found on the Menu bar as "Tools"). (“工具”图标位于IE9的右上角,或者也可以在菜单栏上找到“工具”作为“工具”)。 2. Then click -> Internet Options" -> Security tab -> Custom Level button -> Scroll to the "Scripting" section near the bottom, and under "Active scripting" select Enable. 3. Click OK. 2.然后单击-> Internet选项”->安全选项卡->自定义级别按钮->滚动到底部附近的“脚本”部分,然后在“活动脚本”下选择“启用”。3.单击“确定”。
Now just close down IE9 completely, and restart a new instance of IE9 for javascript to get enabled and start working. 现在,只需完全关闭IE9,然后重新启动IE9的新实例即可启用javascript并开始工作。
Regards, Reno Jones 问候,里诺·琼斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.