Delete a specific row from table - Javascript Views : 582
Tagged in : Javascript
0 0
Send mail
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



    Login to add Comments .