select CommandThe 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.
<input id="search" value="hello world" />
<button _="on click select #search">Select All</button>
<input _="on focus select" value="click to select" />
select [<expression>]