title: check whether string contains a line break
body: <p>So, I have to get HTML of textarea and check whether it contains line break. How can i see whether it contain <code>\n</code> because the string return using <code>val()</code> does not contain <code>\n</code> and i am not able to detect it. I tried using <code>.split("\n")</code> but it gave the same result. How can it be done ?</p>
  
  <p>One minute, IDK why when i add <code>\n</code> to textarea as value, it breaks and move to next line.</p>