I have a webpage where i am trying to put a search feature.along with the search box, i put an image.When user clicks on the image i want to show a small div with some content(various filter options like "search in contacts,search in emails,search in trash etc").I want to place the div just below the search box. Now i want to know where should i place this div in my HTM markup ? I am wondering how can i place the div on a purticular position. (Some thing like the autosuggest).How do i handle this in javscript ? My ultimate objective is to show the Div under the searchbox (text box) when user clicks on the image (showSearchOptions function )
<div class="divSearchBar">
<div id="searchSelect" style="float:left; width:25px;">
<a onclick="showSearchOptions();" href="javascript:;">
<img id="searchImg" class="searchMore" border="0" src="Images/searchMore.gif"/>
</a>
</div>
<div class="searchInputDiv">
<input type="text" style="border: 1px solid red; padding: 1px 0px 0px 3px;" value="" name="search" id="search"/>
</div>
</div>