JSFiddle - React, Tailwind, and code Playground

HTML

<div class="baz">
    <form method="POST" action="/echo/html/">
    <div>
        <input type="text" name="foo" value="bar" />
        <input type="submit" />
    </div>
    </form>
</div>
<div id="insert_here">
</div>

<input type="button" id="clone" value="Clone it" />

CSS

form {
    border: 1px solid #999;
}
input {
    border: 1px solid #f00;
}
form input {
    border: 1px solid #0f0;
}

JavaScript

$('#clone').click(function () {
    $('#insert_here').html($('div.baz').html())
});