JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td valign="top">Add<input type="hidden" value="xxxxxxx" name="ProductCode"></td>
<td valign="top">Add<input type="nothidden" value="yyyyyyy" name="ProductCode"></td>
<td valign="top">Add<input type="hidden" value="zzzzzzz" name="ProductCode"></td>
</tr>
</table>
CSS
td {
background-color: red;
}
JavaScript
$("td:has(input[name=ProductCode]:hidden)").each(function(){
$(this).contents().first().remove();
});