MDN self-hosted library · e01.org

HTMLTextAreaElement: select() method

HTML DOM

no runnable cells web-api-instance-method upstream source

HTML DOM

The select() method of the HTMLTextAreaElement interface selects all the text in a textarea element.

For general information about this method, see HTMLInputElement.select().

Syntax

select()

Parameters

None.

Return value

None (undefined).

Specifications

Browser compatibility

See also

  • HTMLTextAreaElement
  • HTMLTextAreaElement.setSelectionRange()