html - How do I programmatically put line breaks into a textarea -
i using textarea field display status of form submission. form allows user delete 1 or more images.
currently textarea showing:
1234.pdf has been deleted. 5678.pdf has been deleted. (no line-breaks)
i'd like:
1234.pdf has been deleted.
5678.pdf has been deleted.
i've tried putting in <br/>
(which shows <br/>
in text, doesn't cause line break) , i've tried environment.newline, seems ignored , ends showing first example above.
what doing wrong?
both:
<textarea rows="10" cols="30"> 1234.pdf has been deleted. 5678.pdf has been deleted. </textarea>
and
<textarea rows="10" cols="30"> 1234.pdf has been deleted. 5678.pdf has been deleted. </textarea>
should work. if write output php example put \n or
@ end of every string , work. if use c# or vb.net use (char)10 c# or chr(10) .vb.
Comments
Post a Comment