How to read text line by line in a html text area?

dom, html, javascript, jquery, textarea

Solution

You're looking for the Javascript `split()` method.

Problem

How can I read the contents of a text area line by line or split the text in different lines to obtain input as lines of text.

Original source

Related problems