dataTextField String (default: null)

The field of the data item used when searching for suggestions. This is the text that will be displayed in the list of matched results.

Example - set the dataTextField

<input id="autocomplete" />
var data = [
  { id: 1, name: "Apples" },
  { id: 2, name: "Oranges" }
  dataTextField: "name", // The widget is bound to the "name" field
  dataSource: data
In this article