Is it possible to show the description of a select list inside the actual select list? When the select list is clicked, the description should disappear and show the list.
example:
<select description="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
I would like to have the word "Cars" inside the select box and when it's clicked it should disappear and show the select list.
I know this is possible for text input fields, could this ne achieved with the select-tag? Probably with jquery?
Edit: "Placeholder" was the magic word. This topic deals with it: How do I make a placeholder for a 'select' box?
Edit2: apparently somebody posted an even better solution to my question, but deleted his answer... strange. I was lucky enough to link to the jsFiddle in time :)