JSFiddle - React, Tailwind, and code Playground
by Ashish
HTML
company:<input type="text" id="company" /><br>
city:<input type="text" id="city" />
JavaScript
$(function() {
$('input[id$=company]').keyup(function() {
var txtClone = $(this).val();
$('input[id$=city]').val(txtClone);
});
});