I can not delete a row using fnDeleteRow(rowElement), but fnDeleteRow(rowIndex) can work

I can not delete a row using fnDeleteRow(rowElement), but fnDeleteRow(rowIndex) can work

yueyajieyueyajie Posts: 1Questions: 0Answers: 0
edited April 2012 in General
I get a jquery object "row" and alert($(row)), it shows "[object object]", and alert($(row).get()), it shows "[object HTMLTableRowElement]". then i use the fnDeleteRow(row), fnDeleteRow($(row)) and fnDeleteRow($(row).get()), all of these can not delete this row. Is there anybody can help me?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Just passing in the TR element should do it: http://live.datatables.net/axomah/edit#javascript,html . If that doesn't work for you, please link us to a test case showing the problem.

    Allan
This discussion has been closed.