Name
Textarea.select( ): select the text in this element â DOM Level 2 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 replaces the highlighted text instead of being
appended to it.
Get JavaScript: The Definitive Guide, 5th 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.