Sometimes you need to add a complex structure or generated table to an element.
Writing is not always convenient:
$('#div_table').append('<table>'); $('#div_table').append('<tr>'); $('#div_table').append('<td>'); $('#div_table').append('12'); $('#div_table').append('</td>'); $('#div_table').append('<td>'); $('#div_table').append('13'); $('#div_table').append('</td>'); $('#div_table').append('</tr>'); $('#div_table').append('</table>');
If you write within the same append line, it becomes unreadable. Write in this form JS does not seem to allow:
$('#div_table').append('<table> <tr> <td>12</td> <td>13</td> </tr> </table>');
Tell me how to cope with this matter? I am writing in SublimeText2.