# Select on Focus

The TextBox supports automatically selecting its entire value when the user focuses the component. This behavior improves data-entry workflows where users typically replace the existing value rather than edit it.

## Enabling Select on Focus

To enable automatic value selection on focus, set the [`selectOnFocus`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#selectonfocus) property to `true`. When the user clicks or tabs into the TextBox, the current value is highlighted in full.

The following example demonstrates the TextBox with `selectOnFocus` enabled.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/textbox/select-on-focus/source.txt)

## Suggested Links

* [API Reference of the TextBox](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent)
* [TextBox Events](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/events)
