0

I want to apply some changes to the selected text of a text area only.

I want to select a certain portion of a text written in the text area and want to make some changes on it by javascript.

Thanks

Ben Everard
  • 13,254
  • 12
  • 63
  • 95
Muddser
  • 79
  • 1
  • 2
  • 7
  • I think the answer to this question might help you: [how-to-get-selected-text-from-textbox][1] [1]: http://stackoverflow.com/questions/275761/how-to-get-selected-text-from-textbox-control-with-javascript – wasimbhalli Sep 07 '11 at 12:46

2 Answers2

0

I think the answer to this question might help you:

how-to-get-selected-text-from-textbox

It shows you selection of the text and you can use javascript to process it.

Community
  • 1
  • 1
wasimbhalli
  • 4,578
  • 8
  • 41
  • 60
0
document.selection.createRange().text = "NEW TEXT";
Travesty3
  • 14,336
  • 6
  • 52
  • 95