JSFiddle - React, Tailwind, and code Playground
by jnfsmile
HTML
<div id="container">
<textarea>asdfsdaf</textarea>
</div>
JavaScript
var t = $('#container').clone();
t.find('input[type="text"],textarea').val('').attr("value", "");
alert(t.html()); //the inputs in the alert have value
$('#container').after(t);