this is only a sample..........
function setAutoCompleteProc() {
$nc2("#txtitem").autocomplete({
minLength: 2,
source: "../Forms/getdataService.aspx?Id=0; + Math.random(),
focus: function (event, ui) {
$nc2(this).val(ui.item.NAME);
return false;
},
select: function (event, ui) {
$nc2(this).val(ui.item.NAME);
return false;
}
});
here in getdataService.aspx a function retrieves dropdown items , onfocus of that text box call the js function