I don't want this:
<textarea>The <b>color</b> is black.</textarea>
Instead of the <b>
and </b>
i want the text "color" to be shown in bold.
Is this possible?
The size of a text area is specified by the cols and rows attributes (or with CSS). The name attribute is needed to reference the form data after the form is submitted (if you omit the name attribute, no data from the text area will be submitted). The id attribute is needed to associate the text area with a label.
The <textarea> element does not have a type attribute. The HTML <textarea> element represents a multi-line plain-text editing control, and is useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
<textarea> does not support the value attribute.
You Can't style the content of a text area separately, you have to use <div>s, or something similar. This may be a duplicate of:
Format text in a <textarea>?
Do you Want Something like this:?
http://jsfiddle.net/mekwall/XNkDx/
$('.editable').each(function(){
this.contentEditable = true;
});
this allows you to edit the content of a div, and it will still look like a textarea,
Bold Works.
For these cases, avoid use something pure text area, use wysiwyg html editor.
Here are some ideas for you:
ckeditor
niceditor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With