The workaround is to remove the option
elements in response to your event and add them back if and when they are needed. IIRC, IE will not allow you to set the display
to none
on option
elements. I would advise storing the removed elements in an array so that you can easily add them back in.
More Related Contents:
- Why are regular expressions taking the helm in my JavaScript, and how do I insist “this is a string”? [closed]
- Is it possible to display a custom message in the beforeunload popup?
- new Date() is working in Chrome but not Firefox
- Detecting the onload event of a window opened with window.open
- How can I set default homepage in FF and Chrome via javascript?
- Cryptic “Script Error.” reported in Javascript in Chrome and Firefox
- Breakpoint on property change
- How to getting browser current locale preference using javascript?
- JavaScript Time Zone is wrong for past Daylight Saving Time transition rules
- How JavaScript closures are garbage collected
- Does execCommand SaveAs work in Firefox?
- Open IE browser in Firefox/Chrome page
- Animated gif only loops once in Chrome and Firefox
- What happens to code after a javascript redirect (setting window.location.href)?
- Add to browser favorites/bookmarks from JavaScript but for all browsers (mine doesn’t work in Chrome)?
- Chrome – Fetch API cannot load file. How to workaround?
- Why is a function declaration within a condition block hoisted to function scope in Chrome but not Firefox?
- How can I inspect disappearing element in a browser?
- Get cursor or text position in pixels for input element
- Why are function declarations handled differently in different browsers?
- How to get result of console.trace() as string in javascript with chrome or firefox?
- Silence net::ERR_CONNECTION_REFUSED
- How to detect if user has enabled full screen in browser
- How to use “segments” mode at SourceBuffer of MediaSource to render same result at Chomium, Chorme and Firefox?
- chrome Pop-up blocker when to re-check after allowing page
- Chrome won’t play WebAudio getUserMedia via WebRTC/Peer.js
- Gmail Extension, sendMessage to background from page context
- Prevent Address-Bar hiding in mobile Browsers
- How to get list of network requests done by HTML
- Chrome debugging – break on next click event