JSFiddle - React, Tailwind, and code Playground

by rajhseg

HTML

<input type="text" id="txt1" />
<input type="text" id="txt2"/>

JavaScript

$('#txt1').change(function(){

var result=document.getElementById('txt1').value;
  document.getElementById('txt2').value=result;

});