add/delete data-table row
add/delete data-table row
![ynasser](https://secure.gravatar.com/avatar/614f4bf1717ad5bc83d6e71177f92eef/?default=https%3A%2F%2Fvanillicon.com%2F614f4bf1717ad5bc83d6e71177f92eef_200.png&rating=g&size=120)
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