Carriage return / new line / br are not working when inserting text.


hey there!

 

i have inside loop , pull strings array

 

 

mydefs +=  unescape(across[i][0]);

mydefs +=  '\r';

 

//this works (shows text carriage returns)

alert(mydefs);

 

screen shot 2013-03-19 @ 3.32.24 pm.jpg

 

//this not working @ (shows text together)

sym.$('across_txt').text(mydefs);

 

screen shot 2013-03-19 @ 3.31.34 pm.jpg

 

any clue? tried .html(mydefs); , not working.

 

thanks. adrian.

adrian-

 

remember goes html() tag actual html, means carriage return means nothing.  try encasing text in <p></p> tags or insert <br /> tag instead.

 

hope helps!

 

-elaine



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support