JSFiddle - React, Tailwind, and code Playground
by osman rahimi
HTML
<input type="text" id="txtNotes"/>
<div id="emailModal">
<input type="text" id="txtPreview"/>
</div>
<input type="button" id="btnapp" value="append"/>
JavaScript
$(document).ready(function(){
$("#btnapp").click(function(){
var selectedKey =$('#txtNotes').val();
$('#txtPreview').val($("#txtPreview").val()+selectedKey);
});
});