I have options tags inside a select tag, each one has a title attribute, I want to change the style of those titles, I tried this but it didn't work :
<select>
<option id="op1" title= 'title1'>option 1</option>
<option title= 'title2'>option 2 </option>
</select>
First with this css:
option[title]:hover:after{
content: attr(title);
background: red;
}
Then with this one:
#op1[title]:hover:after{
content: attr(title);
background: red;
}
Neither of those two methods worked, yet I tried this with the anchor tag and it did work. Any suggestions please.