jQuery - doing operation after user has selected a value
<p>In my form, I have an autocomplete textbox field which sits in a <code>div</code> which is dynamically populated by AJAX and the autocomplete functionality is working fine. After the user has selected the autocompleted value from the list in textbox, I need to do some operation on the same and get printed the resulted value on another textbox. How can I achieve this?</p>

<p>Please see the code below:</p>

<pre><code>if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
{
    document.getElementById("waitimg").innerHTML="";
    document.getElementById("ajxform").innerHTML=xmlhttp.responseText;
    $(function(){ 
        $("#item_no").autocomplete("auto/finditem.cfm");
    })
}
</code></pre>

<p>I have already created a function to do this operation, so I need to call this function after the user selects the autocompleted value.</p>
