Why Does Ie (ie8, Specifically) Not Highlight Selected Option In A Multi Select Box Which Is Disabled?
I am having a multi select box in a JSP page which has some options and is disabled.
Solution 1:
I hope i clearly understand what you want to do, but i can sugest to do it with little jquery?
<scripttype="text/javascript">
$(document).ready(function() {
$("#mySelectBox option:selected").css('background','black');
});
</script>
Solution 2:
Interestingly, this CSS workaround seems to have fixed my issue!!
select[disabled="disabled"][multiple="multiple"]{
background-color:#D4D0C8;
}
select[disabled="disabled"][multiple="multiple"] option[selected="selected"]{
background-color:navy;
}
Interesting because, earlier I had used the same to no effect. Perhaps I had missed out on something then.
Post a Comment for "Why Does Ie (ie8, Specifically) Not Highlight Selected Option In A Multi Select Box Which Is Disabled?"