I have a text area that I want to pre-populate with some specific text that includes line breaks. I\'m populating the area onLoad but I can\'t get the line breaks to work c
Just use the newline character: \n.
\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/