mardi 24 février 2015

Returning string result into a new line in a table cell

I have this data that i need to split into 3 lines within the same cell.



var Ms = '<tr>'
Ms += '<td>' + 'Where' + '\n\r' + 'are' + '\n\r' + 'you' + '</td>';
Ms += '</tr>'


I tried \n, \r and \n\r but seems not to work. I need the result in this format: Where are you


Aucun commentaire:

Enregistrer un commentaire