Delete a specific row from table

by Rekha 2009-10-15 15:30:47

To delete a specific row from a table,the following function is used.


function removeR(r){
r.parentNode.removeChild(r);
}


Then in each row call the function as

onclick="removeR(this.parentNode.parentNode)"

This will delete the row by click a button in the row itself.

Tagged in:

1587
like
0
dislike
0
mail
flag

You must LOGIN to add comments