For IE, I tried several ways to add new lines in textarea without success.
HTML
<textarea name="myTextarea" rows=4 cols=4 maxlength=250></textarea>
JAVASCRIPT
var text= "line1 line2 line3";
text= text.replace(/\s/g, "\r");
$('textarea[name=myTextarea]').val(text);
UPDATE
I tried to remove the css associate to the textarea and its work.
textarea{
white-space: nowrap;
}
The problem is that now I cannot display words in the same line without breaking them. But it requires another question