Name
HTMLTextAreaElement.select( ) — select the text in this element
Availability
DOM Level 1 HTML
Synopsis
void select( );
Description
This method selects all the text displayed by this
<textarea>
element. In most browsers, this
means that the text is highlighted and that new text entered by the
user will replace the highlighted text instead of being appended to
it.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.