Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set the fontcolor and size for the selected text of text area ?

 
Paul Phoby
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set the fontcolor and size for the selected text of text area ?
I am using the below mentioned code for to select the text.
document.selection.createRange().text
Now I want to set font size, font color and bold to that selected string of text area.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will not be able to change it do to the fact it is in a text area....you can not change the formatting for a part of a text area...all has to be the same.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic