I am trying to populate a select or listbox control from the results in jQuery autocomplete plugin. I do not want to display the div below the autocomplete control when the results are returned. Any help?
UPDATE:
Here’s the code I am trying to populate the listbox:
formatItem: function (data) {
$('#lstBox').append($("<option/>"), {
value: data.Name,
text: data.Name
});
return '';
}
Supposing you are using this plug in, have you tried:
if that does not work try: