I have the following idea, but I can't find any code snippets or similiar examples so I don't know if it's possible to do it with jQuery UI. So in my database I have a table, in which every customer has an ID and Name:
ID Name
1 John Example
2 Johnny Example
What I want to do now is, if the user types Joh it should show him the entries in the following way:
John Example - 1
Johnny Example - 2
So my question: is it possible at all to do a display like that for my autocomplete function?
My code for the view and autocomplete function at the moment looks like this and displays only the name of the customer:
<script>
$("#CustomerName").autocomplete({
source: "/Customer/AutoCompleteCustomer",
minLength: 2
})
</script
Thanks and if you need any further information, please let me know, I will provide it as fast as possible.
AutoCompleteCustomerreturns data in this format. Is there more specific question here?