# Index

You can configure the initially selected index of the Kendo UI ButtonGroup by using its [`index`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/buttongroup/configuration/index) property.

You can also select an index through the [`select`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/buttongroup/methods/select) method with a Integer argument.

The following example demonstrates how to select a button by its index.

```
<ul id="buttongroup">
	<li>Option 1</li>
	<li>Option 2</li>
	<li>Option 3</li>
</ul>

<script>

$(function(){
	var buttongroup = $("#buttongroup").kendoButtonGroup({
		index: 0
	}).data("kendoButtonGroup");
	// ...
	// Select a button at index 1.
	buttongroup.select(1);
});

</script>
```

## See Also

* [Basic Usage of the ButtonGroup (Demo)](https://demos.telerik.com/kendo-ui/buttongroup/index)
* [JavaScript API Reference of the ButtonGroup](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/buttongroup)
