Click to See Complete Forum and Search --> : finding value of selected text in textarea


donnell
01-31-2003, 02:43 PM
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.

BestZest
01-31-2003, 04:21 PM
You can't (to my knowledge) get the selected text in a text box with JavaScript. Thats all I can say.

BestZest

donnell
02-01-2003, 08:21 AM
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