Answers for "how to select a textarea in js"

1

select all text in textarea javascript

<textarea onclick="this.focus();this.select()"></textarea>

<!-- To copy the text -->
<textarea onclick="this.focus();this.select();document.execCommand('copy')"></textarea>
Posted by: Guest on June-27-2020
-2

javascript find textarea

if(document.getElementsByTagName('textarea').length > 0) {

}
Posted by: Guest on January-15-2020

Code answers related to "how to select a textarea in js"

Browse Popular Code Answers by Language