dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: finding value of selected text in textarea

  1. #1
    Join Date
    Jan 2003
    Posts
    2

    finding value of selected text in textarea

    hi,

    i'm trying to find this partial string to use in a js function. if i use something like,
    document.form.textbox.value
    it will return the full value. i want to select (onSelect?) a portion of the text and refer to that in the function.

    any help?......
    thanks.

  2. #2
    Join Date
    Dec 2002
    Location
    England
    Posts
    93
    You can't (to my knowledge) get the selected text in a text box with JavaScript. Thats all I can say.

    BestZest

  3. #3
    Join Date
    Jan 2003
    Posts
    2

    THANK YOU, DAVE!!

    thanks so much, Dave!
    that's exactly what i was trying to do - give the user the option to bold and italicize phrases. i've been working on this for so long.... thank you!

    does this work in IE on both PCs and Macs? and there's no way to get this to work in netscape?

    trish

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles