I want to add row using data datatables, and I can do it like this
var table = $('#mytable').DataTable();
table.add.row(['first column', 'second column', 'three column', 'etc']);
What I need is something like this (some attribute in TR and TD tag)
<tr id="someID">
<td>first column</td>
<td>second column</td>
<td>three column</td>
<td id="otherID">etc</td>
</tr>
How I can do it with datatables?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…