I have a selection list, that once selected I would like to remove or disable the option choosen. However, at a later time I may want to add or enable it again.
There is a bug in Internet Explorer that does not allow you to use the .hide() method on an option. It works just find in other browsers of course.
Searching Google I’ve determined that if I want it hidden in IE, that I would have to use the .remove() method, which removes it from the DOM, store it in an array, and add it back in when needed. I thought this was overkill.
So I found a good solution. The attribute ‘disabled’ works in IE. Since the hide() method will silently fail, do both. Therefore the option will just not be choosable in IE, and it will disapear in other browsers.