NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Text Area Help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
4 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 05-29-2006, 03:25 PM THREAD STARTER               #1 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold
 



Text Area Help


I have a text area section on my website i would like to create a button called "select all" this will then select the code within the given textarea.

Ive tried to do a few searchs on google but cant find the code Ive seen it done on some sites so it must be doable

Thanks for any help!

Regards,
Darren
dc1pop is offline  
Old 05-29-2006, 03:38 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Give the textarea an id (<textarea id="text"></textarea>)

And do
<input type="button" onclick="document.getElementById('text').select(); " value="select text" />
Dan is offline  
Old 05-29-2006, 03:41 PM THREAD STARTER               #3 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold
 



Brillant! Great Help! Thanks
dc1pop is offline  
Old 05-29-2006, 03:54 PM   #4 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
You don't even need to use a button

HTML Code:
<textarea name="bleh" rows="5" cols="40" onClick="this.select();">bleh</textarea>
Eric is offline  
Old 05-29-2006, 03:56 PM THREAD STARTER               #5 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold
 



hmm well didnt know that

Thanks for the help aswell
dc1pop is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:14 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger