当用户在textarea框中输入文本并且不使用enter并将其包装到下一行时,我想添加一个<br>
标记。
If the current textarea value is displayed on the screen
这就是现实的生活吗?这只是幻想吗?陷入山体滑坡,无法摆脱现实。
What I want
这就是现实的生活吗?这只是幻想吗? 陷入山体滑坡,无法逃脱 现实。
我想解决这个问题。
请帮我。
试试这个:
<textarea cols='60' rows='8'>This is my statement one. This is my statement2</textarea>