JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="first" value="tesdafsdf" />
<input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" /><input type="text" id="second" />

JavaScript

$('#first').keyup(function() {
    updateSearch();
});

var updateSearch = function() {
    $('#second').each(function(index, value) {
        this.value = $('#first').val();
    });
};

//Change the values for testing purpose
updateSearch();