JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />
<input type="text" />
<input type="text" />

JavaScript

jQuery ( function () {
    var inputs = jQuery ( ':text' )
    inputs.each ( function () {
        jQuery ( this ).change ( function () {
            inputs.not ( this ).val ( this.value )
        })
    })
})