Hello all,

Im new to javascript and i cant figure out what im doing wrong here.
I made javascript where you can put products to a table. It makes a row with product, price and delete.
This is working but, my delete button or my delete function isnt working.

Table html code:

<table id="schema">
<td id="product-head"> Product </td>
<td id="price-head"> Prijs </td>
<td id="delete-head"> Verwijder </td>


<tbody id="product-list"></tbody>

Here the delete function:

function deleteRow(event) {



Console error:

NotFoundError: Node was not found


I just dont understand what im doing wrong here.
Hope someone can explain this to me!