What is the best way to check the text area value for line breaks and then calculate the number of occurrences, if any? I have a text area on a form on my webpage. I am using JavaScript to grab the value of the text area and then checking its length. Example If a user enters a line break in