I need help finishing my custom built ajax [div] based dynamic dropdown.
Basically, I have an [input] box which; onkeyup, runs an Ajax search which returns a bunch of results in divs and are drawn back in using innerHTML. These divs all have highlights onmouseover so, a typical successfull search yields the following structure (pardon the semicode):
[input] [div id=results] //this gets overwritten contantly by my AJAX function [div id=result1 onmouseover=highlight onclick=input.value=result1] [div id=result2 onmouseover=highlight onclick=input.value=result2] [div id=result2 onmouseover=highlight onclick=input.value=result2] [/div]
It works.. beautifully! looks elegant and is way more complete than any regular dropdown (those results div bring in a lot of information).
<ENTER> to trigger that onclick event?)