Skip to content

Tag: datatables

How to know index of DataTable row just added?

I am using the DataTables jQuery plugin version 1.10.22. I add a row to DataTable, like the following. That works. A new row is added to the table, and the data I provided is displayed. But, immediately after adding the row, I would like to know the row index of that row I just added. How do I determine that?