 |
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
| |
05-29-2006, 04:25 PM
|
· #1 | | Senior Member Name: Darren Location: UK Join Date: Dec 2004
Posts: 1,895
NP$: 101.10 ( Donate)
| 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 |
| |
05-29-2006, 04:38 PM
|
· #2 | | Buy my domains. Name: Dan Join Date: Feb 2006
Posts: 2,801
NP$: 54.00 ( Donate)
| Give the textarea an id (<textarea id="text"></textarea>)
And do
<input type="button" onclick="document.getElementById('text').select();" value="select text" /> |
| |
05-29-2006, 04:41 PM
|
· #3 | | Senior Member Name: Darren Location: UK Join Date: Dec 2004
Posts: 1,895
NP$: 101.10 ( Donate)
| Brillant! Great Help! Thanks  |
| |
05-29-2006, 04:54 PM
|
· #4 | | while ($awake){ code(); } Name: Eric Location: Kentucky Join Date: Mar 2005
Posts: 4,268
NP$: 1152.00 ( Donate)
| You don't even need to use a button HTML Code: <textarea name="bleh" rows="5" cols="40" onClick="this.select();">bleh</textarea> |
| |
05-29-2006, 04:56 PM
|
· #5 | | Senior Member Name: Darren Location: UK Join Date: Dec 2004
Posts: 1,895
NP$: 101.10 ( Donate)
| hmm well didnt know that
Thanks for the help aswell  |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |