Datatable - Get row index based on row id
Datatable - Get row index based on row id
nodiced922
Posts: 1Questions: 0Answers: 0
I would like to delete a row in a table based on the row id but I am having trouble getting the index based on row id.
How can I get the row index based solely on the id value of the row?
var row_id = 432;
var row_index = "someCode that gets me the index based on" (id)
oTable.fnDeleteRow(varid_num );
How can I get the row index based solely on the id value of the row?
var row_id = 432;
var row_index = "someCode that gets me the index based on" (id)
oTable.fnDeleteRow(varid_num );
This discussion has been closed.
Replies
[code]
table.fnDeleteRow( $('#myId')[0] );
[/code]
Allan