|
|
Delete a specific row from table - Javascript
|
Views : 582
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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.
|
|
By Rekha, On - 2009-10-15 |
|
|
|