Reputation:
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 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.
Upvotes: 0
Views: 697
Reputation: 58455
Try appending the <br />
tag
It is the html tag for a break and will make a new line that the browser will acknowledge
Upvotes: 3