JSFiddle - React, Tailwind, and code Playground

by j08691

HTML

<form>
    <textarea id="ttpName" name="ttpName" onchange="tpName(this)" style="margin-top: -9px; width: 275px; height: 40px;"></textarea>
</form>
<textarea id="copytpName" name="copytpName" style="margin-top: -9px; width: 275px; height: 40px;"></textarea>

JavaScript

function tpName(data) {
    document.getElementById("copytpName").value = data.value;
}