JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td><input value="test1" type="hidden" /><input value="test2" type="text" /></td>
<td>123</td>
</tr>
</table>
JavaScript
$(function () {
$('table td:has(input:text)').each(function () {
$(this).html($('input:text', this).val());
});
});