The select Command

The select command selects the text content of an input or textarea by calling .select() on the target element. If no target is given, it defaults to me.

Examples

<input id="search" value="hello world" />
<button _="on click select #search">Select All</button>

<input _="on focus select" value="click to select" />

Syntax

select [<expression>]