Answers for "javascript remove row"

2

delete row javascript

function deleteThisRow() {
  this.closest('tr').remove()
}
Posted by: Guest on June-12-2021
2

javascript remove row from table

document.getElementById("myTable").deleteRow(0); 		// First row
document.getElementById("myTable").deleteRow(-1);		// Last row 

function deleteRow(r) {
  var i = r.parentNode.parentNode.rowIndex;
  document.getElementById("myTable").deleteRow(i);
}
Posted by: Guest on April-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language