Using jQuery to Modify Google Autosuggest
<p>I'm trying to write a jQuery function that adds stuff to the dropdown from Google's search bar after I type in a string. If the string is found in an internal map, then I will print the value for the corresponding key in the suggestion dropdown similar to what Google is already doing for weather, math calculations, etc. So far I have this:</p>

<pre><code>var map = { 'weather' : 'It's hot!' };
$("lst-xbtn").click(function () {alert( "hey" );});
</code></pre>

<p>The few things I am struggling with:
1) Instead of click, it should be like an onKey event. How do I look up the proper event?
2) How do I check if a key exists in the map in my function block?
3) How do I add a div element to the dropdown that appears with the value in the map? Also how do I make sure the dropdown has appeared before adding the element.</p>
