More information about the Underscore mailing list

[_] SELECT box width and wide OPTIONs

Tim Beadle tim.beadle at gmail.com
Wed Jan 23 17:01:27 GMT 2008

On 23/01/2008, Joel Hughes <jh at jojet.com> wrote:
> I wonder if you can have your cake and eat it though?

Indeed.

> Can you not:
>
> 1) leave the options in the select element
> 2) tap into the select click() and a) stop it propagating (stops the
> default list from showing?) and b) show the DIV as you mention (in fact
> the DIV could be populated on the fly via the contents of the select)
>
> Is that offensive?

Nope, that's the right way to do it. That way, non-JS-enabled browsers
still get the select element.

Tim