Linebreaks when Append()ing to a TextArea
I am splitting a string value, and attempting to Split() that string value and append each line to a TextArea with line breaks between each string. To do this, I'm appending an "\r\n" to each string. The strings are appending ok, but the line breaks are NOT showing up. Instead, everything shows up as one, big line. (The \r\n is NOT rendering as text however - that is, you can't see it)
var mySplitResult = WebAnnotationViewer1.getReturnValue().split("|");
for (i = 0; i < mySplitResult.length; i++) {
$('textarea').append(mySplitResult[i] + '\r\n');
}
Any ideas? What am I doing wrong?