Edit this page

index Number(default: -1)

The index of the initially selected item. The index is 0 based.

Example - select second item

<input id="combobox" />
var items = [{ text: "Item 1", value: "1" }, { text: "Item 2", value: "2" }];
    dataTextField: "text",
    dataValueField: "value",
    dataSource: items,
    index: 1
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article