modify autocomplete.js
<p>i am trying to add a button in the autocomple.js when no match if found and it should allow the user to turn off autocomplete. i have added the button but i can not fire a event on the button click..
this is the code where i am trying to bind the mousedown event with the button</p>

<pre><code>if (li.childNodes[x].tagName &amp;&amp; li.childNodes[x].tagName == 'INPUT')
{
    (li.childNodes[x]).mousedown(function() {
        alert('finally');
    });
}
</code></pre>

<p>thanks in advance ..
cheers....
abhi </p>
