Simple Method to Select all Text inside a Textarea

by Sasikumar 2014-04-19 11:39:51

Simple method to select all text inside a textarea using javascript.
Use the following code. On clicking the textarea the text inside the textarea will be selected,
<textarea rows="10" cols="50" onclick="this.focus();this.select()" readonly="readonly">Hi, Welcome to hiox.org, For further scripts and code snippets visit hscripts.com</textarea>

I like people who enjoy life, 'cause I do the same.
769
like
0
dislike
0
mail
flag

You must LOGIN to add comments