use val() instead of text() to replace data in textarea.