In my page I am using ajax to generate/show a textbox after button click. I am using autocomplete functionality in this textbox, but autocomplete call is not firing off. I cannot see the autocomplete call in firebug when I try to enter anything in the textbox.
But at the same time it is working fine in a plain test page which has a textbox (without ajax generation), so that means jQuery, autocomplete files are okay.
I am suspecting ajax generated textbox’s ID should be called in autocomplete function in a different way. I have attached below what way I tried.
<script>
$(function(){
$("#orderingparty2").autocomplete("auto/findparty.cfm");
})
</script>
Bind the code adding autocomplete to the ajax function which is generating the input box. Else you can trigger the autcomplete event on any event like onclick.