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[type!="hidden"])').each(function () {
        $(this).html($('input[type!="hidden"]', this).val());
    });
});