Home >Web Front-end >JS Tutorial >jquery code for manual line break processing in textarea_jquery
There are different opinions on the Internet. After testing, the content of textarea.replace(/n/g, "
") was used to solve the problem. The test passed under IE6/7/8/9 Firefox/3.6.13 chrome10.0.648.82. , the sample code is as follows:
I won’t talk about the following processing