autocomplete not working in keydown funtion
===

I have retrieved data from local database  while typing in textbox using keydown function in jquery. I want to show that data's using jquery autocomplete.But autocomplete works fine in onload not in keydown function.

how to do that?