xdan / autocomplete

jQuery autocomplete plugin like Google autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arrays of object from server side

nasr18 opened this issue · comments

I'm using your plugmin and its awesome. but only one thing i need to ask. How do i bind arrays of objects from server to the dropdown? For example, if i type "p" means, i will get 30 records from server whick looks like

[{
     _id: 12345,
    name: prank,
    city: India
}, {
    _id:67890,
    name: pink,
    city: India
}, {
   .......
}, and so on..........]

How do i display only name field in autocomplete box? @butschster @xdan