JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td class="mainstuff" style="padding-right:0; width:1%; ">
<select id="stuff" class="boxed" title="" name="stuff">
<option value="9100" title="Something:">9100</option>
</select>
</td>
</tr>
</table>
<input type="button" id="clickMe" value="Click Me"/>
JavaScript
$("#clickMe").click(function() {
var html = "<input id='stuff' type='textbox' value=" + $("#stuff option:first").val() + " />";
$("#stuff").remove();
$(".mainstuff").append(html);
});