Doing this in a cross-browser way is going to be very challenging, and I suspect, impossible.
Instead, you might want to try using a widget that looks and acts like a select box, but is made w/ HTML & Javascript.
Here’s one way to do it with jQuery: