Results 1 to 4 of 4

Thread: [Resolved]TextArea Selection

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Hyderabad
    Posts
    32

    [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.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: TextArea Selection

    You would need to use client-side JavaScript to do this.

    DJ

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: TextArea Selection

    Add a RegisterStartupScript(), and put this there:

    Code:
    document.formname.text_area_name.focus();document.formname.text_area_name.select();

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Hyderabad
    Posts
    32

    Re: TextArea Selection

    Thanks Issue Solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width