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);
//this not working @ (shows text together)
sym.$('across_txt').text(mydefs);
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
Post a Comment