JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" id="file" />
<br />
<br />
<textarea id="btn">when i am clicked i open the file dialog of the other textbox.."</textarea>
CSS
input, textarea
{
border: solid 1px black;
}
#btn{
width:200px;
height:100px;
}
JavaScript
$('#btn').click(function(){
$('#file').click();
});