I'm working on a project where I need to split a textarea at a specific row (Which dynamically changes).
I tried using a solution where I split the textarea at new lines:
$('#textAreaID').val().split('\n');
but this only splits when the user have manually pressed enter, which doesn't work for my project. How do I achieve something similar, just with the split actually splitting each row, regardless of user-input?
Here I have my textarea, which consists of 4 paragraphs, created with manual breaks, and 13 rows. I need to create two seperate textareas, for example textarea1 (row 1 - 7) and textarea2 (row 8 - 13). As this is inside a paragraph, I need to find a way of dividing that text, on a row-basis, compared to the already presented new-line solution.