While generating any kind of code, that will shown in textarea, after that we just click on that textarea that will select all the texts in the textarea, this is very simple coding, and here i'm not generating any kind of code here. i'm just showing that how to make select all text what they all present in the textarea. how it works, let see here.

CODE
<textarea rows="10" cols="50" onclick="this.focus();this.select()" readonly="readonly"> example text 2my4edge </textarea>
just make onclick function, there give "this.focus(); focus.selcet()" that's it. this is the code for select all text in the textarea.
the above code is the code for select all the text onclick to select all the text in the textarea.
that's it for select all in textarea.
Print or Save the Web page as .PDF Using Java Script
Change background image while page refresh using Javascript
Make Bookmark / Favorites page using Java Script
Toggle Show/hide concept using java script
Rotate image on hover using CSS3
Most popular posts in 2my4edge
Change text & background color while selecting text using CSS3
Marquee style in different manner with PHP and MySql
My Demos page design details with all my tutorials
Image Zoommer like E-commerce site using multizoom.js
Facebook style Scroll bar using Jquery
Change background image while page refresh using Javascript
Better and Flexible Tooltip using LiteTooltip.js
No comments:
Post a Comment