How can I organize many results in a selectbox?

Posted by zeckdude on Stack Overflow See other posts from Stack Overflow or by zeckdude
Published on 2010-05-31T00:49:31Z Indexed on 2010/05/31 0:52 UTC
Read the original article Hit count: 240

Filed under:
|
|

I have a select box that is part of a form. It is currently querying the addresses table and displaying the addresses into the select box. I plan on having up to 100 addresses.

I'm looking for a solution where I can show all the states if the user clicks on the select box. Then if the user hovers over a state it will show all the addresses for that specific state. Then if the user clicks on an address, it will show that as the picked option in the select box. This is like a dropdown menu within a select box.

Does anyone know where I can find a solution as this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about forms