How can I detect newlines in a html textbox? Answered
I have a big text box and an array called lines. I want each line of the text box to be stored in one of the array segments.
so if the text box was:
The lines variable world be:
lines : Hello
lines : How Are
lines : You
I'm sorry is this is a simple question because i am new to coding.
I am using html and java-script.