add/delete data-table row
add/delete data-table row
ynasser
Posts: 1Questions: 1Answers: 0
in this example https://datatables.net/examples/api/form.html
1) - how I can add a new row
2) - how I can delete a row
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
If you are not using the Editor library then you can use
row.add()
androw().remove()
to add and delete rows.Kevin
Hi @ynasser,
You add a row simply with
or in the format of the table, something like this:
To remove, you can just use
row().remove()
Cheers,
Colin