Struggling with this issue, I've come across various messy solutions, but I'm determined to find a cleaner one. What I'm looking for is an input field that includes a dropdown selection on the left side.
This is essentially what I have in mind: http://jsfiddle.net/spadez/7BgYU/
<form name="multisearch" action="http://www.wittysparks.com/searchvideos/?q=" id="multisearchForm" method="get">
<ul class="ws_drop_down">
<li><a href="#" title="Global Search"><span id="selectedsearch">ViDEOs</span>
<![if gt IE 6]>
</a>
<![endif]>
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class='ws_drop_downm'>
<li><a href="javascript:void(0);" onclick="forWebSearch('http://www.wittysparks.com/news/search/?q=','NEWs');" title="Search NEWs">NEWs</a></li>
<li><a href="javascript:void(0);" onclick="forWebSearch('http://www.wittysparks.com/searchvideos/?q=','ViDEOs');" title="Search ViDEOs">ViDEOs</a></li>
<li><a href="javascript:void(0);" onclick="forWebSearch('http://www.wittysparks.com/searchvideos/?q=','TOPiCs');" title="Search TOPiCs">TOPiCs</a></li>
<li><a href="javascript:void(0);" onclick="forWebSearch('http://www.wittysparks.com/searchvideos/?q=','QUOTEs');" title="Search QUOTEs">QUOTEs</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul><input class="multisearchInput" name="q" type="text" value="Type here & press enter" onFocus="this.value=''"/></form>
My goal is to embed this WITHIN the input box itself, similar to Google's microphone icon placement:
https://www.google.com/search?q=test
So my question is, what's the most effective way to achieve this while ensuring compatibility and minimizing unnecessary code or workarounds?