i am getting reply from server as xyz.innerHTML='blah blah'; in blah blah i want to send newline and it should be displayed as new line in html. what i have to do? please help.
views:
29answers:
1
+1
A:
i am getting reply from server as xyz.innerHTML='blah blah'; in blah blah i want to send newline and it should be displayed as new line in html. what i have to do? please help.
Add <br />
to it:
xyz.innerHTML='blah blah<br />';
Note: You can add the <br />
from server-side script too.
Sarfraz
2010-05-21 07:28:16
thank you. I will try this.
Kumar
2010-05-21 07:35:34
@KK: You are welcome :)
Sarfraz
2010-05-21 07:41:09