I am using Datatable plugin in table. I am adding row dynamically by Jquery:
var t = $('#example').DataTable();
t.row.add( [
counter +'.1',
counter +'.2',
counter +'.3',
counter +'.4',
counter +'.5'
] ).draw();
Here is fiddle Demo. But i haven't found anything how can i add attributes on <tr>?
As per my need i want to add data-id,class,id and any other attributes.