Is it possible to set the selected attribute of an option tag via a CSS class?
I'm wondering if something like the following is possible in a stylesheet:
option.selected {
selected: true;
}
Then in HTML:
<option class="selected">
Which would have the same effect as setting the selected attribute. Is this technique possible?