PDA

View Full Version : How do you manipulate highlighted text in a form field?



tbroas
07-17-2006, 03:57 PM
Does anyone know of a tutorial that demonstrates how to manipulate only hightlighted text? I'd like to created something similar to the Bold, Italic and Underline buttons used on this forum. For example, if you highlight a word and click the bold icon, the bold tags appear around the text. Is that done strictly with javascript? Thanks in advance!

Vallim
07-20-2006, 06:25 AM
Hi,

Refer the link below,

http://www.thecodebehind.com/code/javascript/examples/javascript-textarea-buttons-bold-italic.aspx

to make the text bold,italic and underline using javascript.

Regards,

Valli

(www.syncfusion.com)

ASP.Net FAQ:
http://www.syncfusion.com/faq/aspnet/default.aspx