This allows to style the select boxes with more consistency across browsers. It all works without Javascript. I couldn't figure out how to avoid the fact that you have to click twice on an item to actually select it. You could add a little bit of js to close the select when the user clicks outside of it (users without js will just have to double click an item)