Selecting a textarea range based on surrounding text boundary

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gf

    #1

    Selecting a textarea range based on surrounding text boundary

    I have text in a textarea that looks like this:

    ++++++++++++
    This is line 1
    This is line 2
    ++++++++++++
    This is more text 1
    This is more text 2
    This is more text 3
    ++++++++++++
    etc.
    etc.
    ++++++++++++

    I need to be able to click anywhere within the text bordered by ++++
    and have all the text selected. A cross browser routine would be the
    best (obviously), but if not possible, next best would be the latest
    browsers, and if that's not possible, then IE only.

    Thanks!
  • gf

    #2
    Re: Selecting a textarea range based on surrounding text boundary

    <BUMP>

    "gf" wrote in message
    news:2ecb8cd6.0 401271039.26f6e bf9@posting.goo gle.com...[color=blue]
    > I have text in a textarea that looks like this:
    >
    > ++++++++++++
    > This is line 1
    > This is line 2
    > ++++++++++++
    > This is more text 1
    > This is more text 2
    > This is more text 3
    > ++++++++++++
    > etc.
    > etc.
    > ++++++++++++
    >
    > I need to be able to click anywhere within the text bordered by ++++
    > and have all the text selected. A cross browser routine would be the
    > best (obviously), but if not possible, next best would be the latest
    > browsers, and if that's not possible, then IE only.
    >
    > Thanks![/color]


    Comment

    • gf

      #3
      Re: Selecting a textarea range based on surrounding text boundary

      One last bump :)
      [color=blue]
      >
      > "gf" wrote in message
      > news:2ecb8cd6.0 401271039.26f6e bf9@posting.goo gle.com...[color=green]
      > > I have text in a textarea that looks like this:
      > >
      > > ++++++++++++
      > > This is line 1
      > > This is line 2
      > > ++++++++++++
      > > This is more text 1
      > > This is more text 2
      > > This is more text 3
      > > ++++++++++++
      > > etc.
      > > etc.
      > > ++++++++++++
      > >
      > > I need to be able to click anywhere within the text bordered by ++++
      > > and have all the text selected. A cross browser routine would be the
      > > best (obviously), but if not possible, next best would be the latest
      > > browsers, and if that's not possible, then IE only.
      > >
      > > Thanks![/color]
      >
      >[/color]


      Comment

      Working...