JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

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

JavaScript

$("#txt1").focusout(function(){
    $("#txt2").val($(this).val());
  });