JSFiddle - React, Tailwind, and code Playground

by TheBuzzer

HTML

<input type="text" id="Text1" />
<input type="button" id="Btn1" value="Put value" />

JavaScript

$('#Text1').click(function(e) {
    this.value="Clicked!";
});

$('#Btn1').click(function(e) {
    $('#Text1').trigger('click');
});