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.&#10;5678.pdf has been deleted. </textarea> 

should work. if write output php example put \n or &#10; @ end of every string , work. if use c# or vb.net use (char)10 c# or chr(10) .vb.

fiddler


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -