Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm realizing that someone is going to hop in and say, "But that's limited to just a line of text per option with no images or real formatting."

And that's true. It's also true that's what most folks actually need in most cases. That said, another fast implementation using more markup is to have either a hidden radio button group (single selection) or bunch of hidden checkboxes (multiple selection) that are referenced by visible label tags for the rendered listbox. Doesn't break accessibility for screen readers and can even work without JS.

Browsers can do so much out of the box without us constantly reinventing the listbox wheel.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: