Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-12-2007, 12:34 PM   #1 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,968
Wink Creating a button to select everything in a text area.

Here is a simple script sometimes you want to highlight verything in a text field so that the user can copy it or something.
script goes here


<form>
<center>
<input type=button value=”Highlight All” onClick=”javascript:this.form.textarea.focus();thi s.form.textarea.select();”>

<br>
<textarea NAME=”textarea” ROWS=10 COLS=30 WRAP=VIRTUAL>
Put all the content over here.
Thanks kushagra
</textarea>
</center>
</form>




just notice one the textarea name is textarea and
javascript:this.form.textarea.focus();this.form.te xtarea.select();

Change every textarea word with the name of your text area

and for a google type by just clicking on textarea everything gets selected you can do

<form>
<center>


<textarea NAME="textarea" ROWS=10 COLS=30 WRAP=VIRTUAL onClick="javascript:this.form.textarea.focus();thi s.form.textarea.select();">

Put all the content over here.

Thanks kushagra
</textarea>
</center>
</form>


http://www.easytutorial.info/?p=22

please double check for the whitespaces by mistakes


thanks
krates
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10

Previous phones: N73ME , W810I , Asus P320

Last edited by krates; 10-12-2007 at 12:41 PM.
krates is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 10-12-2007, 12:39 PM   #2 (permalink)
Deadman Walking
 
Batistabomb's Avatar
 
Join Date: Feb 2007
Location: Visakhapatnam
Posts: 879
Default Re: Creating a button to select everything in a text area.

Good programming, also it's not mandatory to post the source for every post dear
__________________
What looks to be nothing,finally that becomes everything...
and what is everything suddenly that changes to nothing...
Learn to live... &
Live to learn...
Batistabomb is offline  
Old 10-12-2007, 12:47 PM   #3 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,968
Default Re: Creating a button to select everything in a text area.

he he he i am just linking to my blog and this is everything by me but i just put one link so that many users from digit came to know about my blog on which i am doing hard work
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10

Previous phones: N73ME , W810I , Asus P320
krates is offline  
Old 10-12-2007, 12:50 PM   #4 (permalink)
Deadman Walking
 
Batistabomb's Avatar
 
Join Date: Feb 2007
Location: Visakhapatnam
Posts: 879
Default Re: Creating a button to select everything in a text area.

really great, you are maintaining a blog
__________________
What looks to be nothing,finally that becomes everything...
and what is everything suddenly that changes to nothing...
Learn to live... &
Live to learn...
Batistabomb is offline  
Old 10-12-2007, 12:57 PM   #5 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,968
Default Re: Creating a button to select everything in a text area.

Thanks this is really hectic when you ran out of tutorials
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10

Previous phones: N73ME , W810I , Asus P320
krates is offline  
Old 17-12-2007, 08:52 AM   #6 (permalink)
vaibhavtek
Guest
 
Posts: n/a
Default Re: Creating a button to select everything in a text area.

nice 1.
 
Old 17-12-2007, 09:11 AM   #7 (permalink)
In The Zone
 
anand1's Avatar
 
Join Date: Sep 2007
Location: 23 17'N, 86 05'E
Posts: 369
Default Re: Creating a button to select everything in a text area.

nice one
__________________
Technology On The Fly
anand1 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Text on XP Start Button looksvivek Tutorials 5 06-11-2007 04:57 PM
change the START button text........(OLD..... BUT FUN) dj{IB} Tutorials 10 25-01-2007 12:25 AM
How To Change Start Button Text! Samystic Tutorials 8 19-12-2006 11:23 AM
Photoshop - How do we select multiple lines in a Text box? imagineer_aman Software Q&A 1 07-08-2006 04:16 PM


All times are GMT +5.5. The time now is 10:58 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2