I need to use JavaScript to remove blank lines in a HTML text box. The blank lines can be at anywhere in the textarea element. A blank line can be just a return
textarea
I believe this will work
searchText.replace(/(^[ \t]*\n)/gm, "")