0
If the answer is good, please do accept answer..
0
thanks to everyone for help
0
You can do this by using rowIndex
Change the delRow function call with parameters
var strHtml7 = "<a title=\"remove template\" name=\"AddMemberMore\" style=\"cursor: pointer;\" onclick=\"delRow('memberInfo', this)\" >-</a>";
Here is delRow function
function delRow(in_tbl_name, r) {
var rIndex = r.parentNode.parentNode.rowIndex;
var tbl = document.getElementById(in_tbl_name);
tbl.deleteRow(rIndex);
}
Happy Scripting!
0
Create the function delRow
function delRow(row)
{
row.parentNode.parentNode.parentNode.removeChild(row.parentNode.parentNode);
}
and call it delRow(this)