Home >Web Front-end >JS Tutorial >jquery code for manual line break processing in textarea_jquery

jquery code for manual line break processing in textarea_jquery

WBOY
WBOYOriginal
2016-05-16 18:10:15862browse

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:

Copy code The code is as follows:




YES!B/S!Article example Page










Result:

I won’t talk about the following processing

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn