$("#manager").easyAutocomplete({ url: "action.php", ajaxSettings: { dataType: "json", method: "GET", data: { action: "autocomplete_user" } }, preparePostData: function (data) { data.q = $("#manager").val(); return data; }, getValue: function (element) { return element.username; }, template: { type: "custom", method: function (value, item) { return item.name + " " + item.username + ""; } } }); $("#employee").easyAutocomplete({ url: "action.php", ajaxSettings: { dataType: "json", method: "GET", data: { action: "autocomplete_user" } }, preparePostData: function (data) { data.q = $("#employee").val(); return data; }, getValue: function (element) { return element.username; }, template: { type: "custom", method: function (value, item) { return item.name + " " + item.username + ""; } } });