JSFiddle - React, Tailwind, and code Playground
HTML
<div id="a">
<input id="Text1" type="text" />
</div>
<input id="btnAdd" type="button" value="Add" />
JavaScript
$(document).ready(function() {
$("#btnAdd").click(function() {
$("#a").append('<div class="con"><input type="text" id="Text1" value="" />' + '<input type="button" class="btnRemove" value="Remove"/></div>');
});
$('body').on('click','.btnRemove',function() {
$(this).parent('div.con').remove()
});
});