Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatables add row

const table = $("#yourTable").DataTable();

table.row.add( /* array or object */).draw();

// or using tr
const tr = $("<tr><td>1</td><td>2</td></tr>");
table.row.add(tr[0]).draw();

// you must call draw() to see your changes
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #datatables #add #row
ADD COMMENT
Topic
Name
1+4 =