Display Style Inside a Text Area
Does anyone know of a way that i can display styled text within a text area/box?
say i wanted to write something like this..
I am <span class="style1> tearing </span>
my hair out over this <span class="style2">Project</span>
The text does not get displayed in the relevant styles and all the text gets written to the page.
Anyone know of a workaround to this?
use this code
document.frm.document.write("<b>This is</a><font color='red'>Test </font>!");
<iframe id="frm" name="frm"></iframe>
It seems you can't put markup into a textarea or input field. But you could always make something look like a text area.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>This is not a text box.</title>
border: 3px inset #fff;
<p>This is <em>not</em> a text box.</p>
<p>No really, it <em class="mega">isn't</em>.</p>
Thats cool deep, but i need to be able to edit the text that is written aswell.. That was why i was using a text area..
I have tried writing to cells of tables, although that works, i then cannot edit the text and save it again.
Do you have any other ideas??
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)