Answers for "javascript delete row from table"

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
0

delete all the rows of table javascript

$("#table_of_items tr").remove();
Posted by: Guest on May-23-2020

Code answers related to "javascript delete row from table"

Code answers related to "Javascript"

Browse Popular Code Answers by Language