Hi,
I am facing trouble while getting data from an html textarea.The textarea is defined as follows:
<textarea id="ta" cols=30 rows=15>
</textarea>
Here,the textarea is restricted to 30 chars.So,if the no of characters per line exceeds 30 chars,the cursor will move to next line.It works well.But the problem,when I am trying to get that value using javascript ,the entire textarea content is shown as single line(continuous string) though it has mulitple.
Here is my fiddle
It shows mulitple lines,if line is separated by ENTER key.