append something to a div in javascript without using pre tag for making newline for text
How i can use append to append new line to div using javascript
means the div have some line and all line show as newline like
it's me Steven Are this fine.
I开发者_Python百科 try to read some article but they tell about \r\n \n
but they not worked. some article tell to use pre tag but i not want to use it.
are their any other good way to do it using javascript.
Try appending the <br />
tag
It is the html tag for a break and will make a new line that the browser will acknowledge
精彩评论