GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Select some text from textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Select some text from textarea" Watch "Select some text from textarea" New topic
Author

Select some text from textarea

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 321

Hello,

I need to select only some of the text entered in the textarea.
After selection, I'm making it bold or italics.

What I've written makes the entire text in the textarea bold or italic..

This is the selected lines of code for this particular problem :



Please advise.


Thanks,
Pramod
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

JavaScript Rich Text Editors


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Select some text from textarea