JSFiddle - React, Tailwind, and code Playground
by nd87
HTML
<label for="EmployeeName">Full name:</label>
<input id="EmployeeName" type="text" maxlength="30" size="20"/>
<button id="done">Done</button>
<textarea id="res"></textarea>
JavaScript
$('#done').click(function(e){
e.preventDefault();
var tag = "<p>";
var split = tag.substring(1);
$('#res').val(tag+$('#EmployeeName').val()+'</'+split);
});