What I would like to do is to change the style of a select box in function of the number of options that it has. More specifically, I would like it to look like a span when there's only one option, and like a typical select element otherwise. In other words, I would like to hide the possibility of making a choice when there is no choice to make.
So far, the only solution I've found to this is to change the type of the tag back and forth from select to span, using jQuery and another SO answer, but since this is rather about styling, I would like to know about a pure CSS solution (or at least, CSS + jQuery solution).