Javascript Line Break Textarea
You need to replace line breaks with newline characters: \n
Just use the newline character: \n
.
So, if you want the textarea to look like this:
This is line 1
This is line 2
You would use a string like this:
"This is line 1\nThis is line 2";
See a demo here: http://jsfiddle.net/MzmBd/