I used dynamic add and delete row in asp.net using javascript. Add row functionality ok. Delete row functions manually worked but functionality wise is not ok. how to possible delete rows in javascript?
My delete row codings:
function removeRowFromTable()
{
var tbl = document.getElementById('tblFilter');
var lastRow = tbl.rows.length;
if (lastRow > 2) tbl.deleteRow(lastRow - 1);
}
if anybody knows pls help me.