I saw that the situation is very problematic after reading this data:
IE6 / IE7 css border for selected item http://api.jquery.com/css/
However, the situation may have changed from Internet Explorer 8. If so, I expect this piece of code to work in IE8:
$(selectObject).css("border", "1px solid red"); $(selectObject).css("border-style", "dashed");
This works the way I expect in Firefox, but not in Internet Explorer 8 . (In IE 8, nothing changes). Therefore, either I forget something, or IE8 is still broken (in the sense indicated in the context above).
If I forgot something for IE8, then what is it?
If IE8 is definitely broken and cannot use CSS to change the properties of SELECT elements, do you have any authoritative source that explains this situation? (Along with the possible work around?)
source share