Hi guys, I have a little problem with DIVS.
Usually you want to change a line or sometimes an image with 'innerHTML'.
Is there anyway I can change a multi-row in DIV?
For example...:
"Hi Guys! whats up?
Blah Blah blah blah blah blah
This is the end"
P.S:
The solution can't include FRAME, TEXTAREA...You just want mulitple lines? Use HTML.
xx.innterHTML="<p>Hi Guys! whats up?<br />Blah Blah blah blah blah blah<br />This is the end</p>"I new that...
It supposeded to be my lastest solution but I thought there was a more intelligent way to do that besides break lines...Well I suppose the most "intelligent" way to do it would be to code the content properly and let the browser wrap it as needed in the div. E.g., your example should either be one paragraph or three.
Usually you want to change a line or sometimes an image with 'innerHTML'.
Is there anyway I can change a multi-row in DIV?
For example...:
"Hi Guys! whats up?
Blah Blah blah blah blah blah
This is the end"
P.S:
The solution can't include FRAME, TEXTAREA...You just want mulitple lines? Use HTML.
xx.innterHTML="<p>Hi Guys! whats up?<br />Blah Blah blah blah blah blah<br />This is the end</p>"I new that...
It supposeded to be my lastest solution but I thought there was a more intelligent way to do that besides break lines...Well I suppose the most "intelligent" way to do it would be to code the content properly and let the browser wrap it as needed in the div. E.g., your example should either be one paragraph or three.