I am trying to add a check box (in form of a pseudo-element) alongside every select's option tag. That works fine on the latest browsers like Chrome, Firefox but not on IE11.
IE11 simply crosses out all the pseudo element's properties and I have read in other answers that it is a debugger bug on IE11 and my content should be rendered
.multiSelectCheckbox {
overflow: auto;
width: 100px;
}
.multiSelectCheckbox option::before {
content: "\2610";
width: 20px;
text-align: center;
display: inline-block;
}
.multiSelectCheckbox option:checked::before {
content: "\2611";
width: 20px;
text-align: center;
display: inline-block;
}
Select one:
<select class="multiSelectCheckbox" multiple>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
I am not sure what next can be done, any inputs would be appreciated. I am also attaching a link to JSFiddle (which this IE11 doesn't support either) here.