tags:

views:

41

answers:

2

IF I have a string

<b>This Is In Bold Letters</b>

then how can I include in a <textarea> so that the string appears in BOLD letters?

using javascript & php?

Pls help dear friends

+1  A: 

You cannot do this with a standard html textarea.

There are ways to do it, though:

http://ckeditor.com

http://www.webwiz.co.uk/webwizrichtexteditor/

Fosco
A: 

The simplest solution to your problem is via CSS. Let me give you an example.

<html>
<head>
<title>Your Solution</title>
<style>
.boldText {
 font-weight:bold;
}
</style>
</head>
<body>
<textarea>No CSS</textarea>
<textarea class="boldText">With CSS</textarea>
</body>
</html>
scubacoder
If everything was supposed to be bold, this would work. That is highly unlikely, however.
Fosco