Any jquery autocomplete plugin which consumes this json format?
{"Table" : [{"ClientName" : "Pandiya"},
{"ClientName" : "Bala"}]}
or how to change the above to
source: ["Pandiya", "Bala"]
Any jquery autocomplete plugin which consumes this json format?
{"Table" : [{"ClientName" : "Pandiya"},
{"ClientName" : "Bala"}]}
or how to change the above to
source: ["Pandiya", "Bala"]
As far as I know, the one in jQuery UI lets you define a custom callback, in which you can do any filtering and transforms you like on the results, and convert your results to the format the widget likes.
It would be very easy to handle this with the jQuery UI autocomplete plugin:
var list = {"Table" : [{"ClientName" : "Pandiya"},{"ClientName" : "Bala"}]};
$("#autcomplete").autocomplete({
source: $.map(list.Table, function(item) {
return {
label: item.ClientName,
value: item.ClientName
}
})
});