|
-
Feb 28th, 2005, 03:55 AM
#1
Thread Starter
Member
[Resolved]TextArea Selection
Hi All,
I have got a textarea and wnat to select all the contents in it during page_ load event, so that the user does not need to press control + 'A' .
regards,
ssmantha.
Last edited by ssmantha; Feb 28th, 2005 at 10:56 PM.
-
Feb 28th, 2005, 07:30 AM
#2
Frenzied Member
Re: TextArea Selection
You would need to use client-side JavaScript to do this.
DJ
-
Feb 28th, 2005, 08:40 AM
#3
Re: TextArea Selection
Add a RegisterStartupScript(), and put this there:
Code:
document.formname.text_area_name.focus();document.formname.text_area_name.select();
-
Feb 28th, 2005, 10:56 PM
#4
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|