JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <input type="button" id="one" value="click me" />
    <input type="button" id="two" value="I'll be clicked" />
</body>

JavaScript

$(function(){
        
         $("#two").click(function(){
            
               alert("two clicked");
        });
        
        $("#one").click(function(e){
            
                $("#two").trigger('click');
        });
    });