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