JSFiddle - React, Tailwind, and code Playground

HTML

a01:<input id="a01" type="text" name="a01">
<br>
a02:<input id="a02" type="text" name="a02">

JavaScript

$('#a01').live('change', function() {
/// $('#a01').change(function() {
 var v = $(this).val();
 $('#a02').val(v);
 $(this).val('xxx');
});