Reputation: 1
The script I am using can be found at this example
It works in Safari, but not IE9.
Any ideas on how to make it work?
Upvotes: 0
Views: 75
Reputation: 4460
document.getElementById('filter').onchange = function (event) {
document.getElementById('field').value = event.target.value
}
Upvotes: 0
Reputation: 1979
Have you enabled JS in IE9?
If not, then do this in IE9: 1. Click on the "Tools" icon. (Tools icon is on the top right-hand corner of IE9, or Tools can also be found on the Menu bar as "Tools"). 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.
Now just close down IE9 completely, and restart a new instance of IE9 for javascript to get enabled and start working.
Regards, Reno Jones
Upvotes: -2
Reputation: 14625
event.target.value
where's the event
variable coming from? Maybe you forgot to specify the parameter?
Try:
document.getElementById('filter').onchange = function (event) {
document.getElementById('field').value = event.target.value
}
Upvotes: 3