3 Replies Latest reply on Mar 20, 2013 8:47 AM by elainecc

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

    chuba21 Level 2

      Hey there!


      I have this inside a for loop and pull strings from an array



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

      myDefs +=  '\r';


      //this works perfectly (shows the text with the carriage returns)



      Screen Shot 2013-03-19 at 3.32.24 PM.jpg


      //this is not working at all (shows the text all together)



      Screen Shot 2013-03-19 at 3.31.34 PM.jpg


      Any clue? I tried with .html(myDefs); also and it is not working.


      Thanks. Adrian.