Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there any way to select <<foo>> on single double-click?

    Hello
    is there any way to to select the all string "<<foo>>" in textarea?
    when i click on the "<<foo>>" im getting all the foo portion of the string selected.
    so my question is can all the string be selected on double-click?
    thanks

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this:

    Code:
    <textarea ondblclick="this.select();">foo bar</textarea>
    Moderator @ WebDeveloper.com
    Mentor @ WebXpertz.net

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok i guess i was misunderstood
    what i meant is say i have in the textarea something like this :
    <TEXTAREA>
    <<foo1>> , <<foo2>> , <<foo3>>
    </TEXTAREA>
    now if i dclick on "foo1" i like that only "<<foo1>>" will be selected
    and if i dclick on "foo2" i like that only "<<foo2>>" will be selected
    and so on..


  •  

    Posting Permissions

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