Skip to content

Home > sculp-js > select

select() function

Programmatically select the text of a HTML element

Signature:

typescript
export declare function select(element: HTMLElement): any;

Parameters

Parameter

Type

Description

element

HTMLElement

The element whose text you wish to select

Returns:

any

Released under the MIT License.