JSFiddle - React, Tailwind, and code Playground

by reporter

HTML

<table>
<tr>
  <td class="subset">
  <form name="search" method="get" action="update.php">
    <input type="text" name="search">
  </form>
</td>
</tr>
</table>

JavaScript

let tablecell = $( '[name="search"]' ).parent('td:first');
let newData = $.get( "'new.php'", function( data ) {
  $(tablecell ).html( data );
});