How to create a drop down menu like the one displayed on Amazon?

Posted by webdev_newbee on Stack Overflow See other posts from Stack Overflow or by webdev_newbee
Published on 2012-12-14T05:00:46Z Indexed on 2012/12/14 5:03 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

I am kind of new to web development. I am trying to create a drop down menu, something I have now is like:

<select>
   <option value="volvo">Volvo</option>
   <option value="saab">Saab</option>
   <option value="opel">Opel</option>
   <option value="audi">Audi</option>
</select> 

but this is not exactly what I want. I want to create a drop down list very similar to the one on Amazon.com (the dropdown list beside "Search"), shown in following pic. so whenever user click on the button, the list will be displayed in the button as text. Please feel free to give me any ideas.

Thank you,

© Stack Overflow or respective owner

Related posts about html

Related posts about css