function removeByCatId(id) { [].forEach.call(document.querySelectorAll('tr'), function(item) { if (item.children[2].innerHTML === id) { item.parentNode.removeChild(item); } }); } removeByCatId('236-1005181');