Can't remove last data table row by JQuery row object
Can't remove last data table row by JQuery row object

So I've got a table that will have n>0 records in it. The table contains a column with an icon that can be used to remove records from the table using the dataTables API.
Here is the delete function:
[code]
function deleteRow(button){
$("#editGridtable").dataTable().fnDeleteRow($(button).parents("tr"));
buildAddFormsDropdown();
}
[/code]
and here is the error according to firebug at line 3243 of the non-minimized javascript file:
[code]
...
for ( var j=iStart ; j
Here is the delete function:
[code]
function deleteRow(button){
$("#editGridtable").dataTable().fnDeleteRow($(button).parents("tr"));
buildAddFormsDropdown();
}
[/code]
and here is the error according to firebug at line 3243 of the non-minimized javascript file:
[code]
...
for ( var j=iStart ; j
This discussion has been closed.
Replies
Allan