I am facing a challenge with an icon placed on a Twitter Bootstrap container. My goal is to click on this icon and have a dropdown menu appear, offering various options that link to different websites. Currently, I am able to display the dropdown menu, but it appears automatically on the page without requiring the icon to be clicked, and the links are stacked on top of each other. Essentially, what I am aiming for is similar functionality to the "buttons" such as "file, edit, source, navigate..." in Eclipse, where clicking on the button reveals a dropdown menu. However, in my case, I need this functionality attached to an icon. Here is the unsuccessful attempt I made:
<a id="myIcon" href="#" class="btn-mini" type="button"><i class="icon-wrench" title="Help" ></i></a>
<div id="helpMenu" class="menu">
<a class="menuItem" href="#">Help</a>
<a class="menuItem" href="#">Ideas</a>
<a class="menuItem" href="#">Issues</a>
</div>
I believe there must be a simple solution that I am overlooking. Any advice would be greatly appreciated.