T
Tamer Higazi
Hi!
I have a form with a textarea. Now, I don't get it handled to read out
the text, and to replace the (\n) anchor with <br> fields.
As well I want to do the same back, if I call the database entries, to
replace all <br> entries with (\n) entries.
here's the sample code:
var MyString = document.feedbackneu.nachricht.value
MyString.replace(/n/,"<br>");
document.getElementById('ausgabeX').innerHTML = MeinString;
but the output is without newlines.
For any help, thank you
Tamer
I have a form with a textarea. Now, I don't get it handled to read out
the text, and to replace the (\n) anchor with <br> fields.
As well I want to do the same back, if I call the database entries, to
replace all <br> entries with (\n) entries.
here's the sample code:
var MyString = document.feedbackneu.nachricht.value
MyString.replace(/n/,"<br>");
document.getElementById('ausgabeX').innerHTML = MeinString;
but the output is without newlines.
For any help, thank you
Tamer