I have a very unique problem while setting text to text area. While the text for exampleMessage is pulled from database it has the text with "\n" s inside it. when the text is setted to text area it shows on "this is" which is before first "\n" and truncates the next text after "\n".
weirdly when I click inside text area and click out again it shows the values. .val is fine to set value to textarea? .html has some issues when we dynamically get data. is .text suggestable?
<textarea id="ExampleMessage">
<textarea>
var result.result.exampleMessage ="this is \n a sample message \n by me";
$("textarea#ExampleMessage").val(result.exampleMessage);