How can I show just the icon of the currently selected option?
Posted
by Paul Tomblin
on Stack Overflow
See other posts from Stack Overflow
or by Paul Tomblin
Published on 2010-03-08T17:34:35Z
Indexed on
2010/03/08
17:36 UTC
Read the original article
Hit count: 165
Is it possible to have a bunch of <select>
dropdowns in html that only display a small (say 10 pixels wide) icon, but when you click it the drop down has a list with the icons beside a descriptive string. (Let's see if ASCII art works on SO):
[X]
| X - Disable |
| v/ - Enable |
| O - Ignore |
+-------------+
[O]
[v]
[X]
Can that be done in CSS? Or in jQuery?
© Stack Overflow or respective owner