Hi, i have a problem with the
autocomplete plugin when i try to get data externally, i have a script that returns something like this below when its called
[{"name":"Bjørn Hansen","to":"bjoern@dsr.life.ku.dk"} ] but when the autocomplete loads every line just says "undefined" undefined, when i then click a line it enters everything instad of just for example the email address, the only thing i modified in the script is the address that it calls. Can anyone help me
- $("#suggest13").autocomplete("mysite", {
- minChars: 0,
- width: 310,
- matchContains: "word",
- autoFill: false,
- formatItem: function(row, i, max) {
- return i + "/" + max + ": \"" + row.name + "\" [" + row.to + "]";
- },
- formatMatch: function(row, i, max) {
- return row.name + " " + row.to;
- },
- formatResult: function(row) {
- return row.to;
- }
- });