write a jquery function on click of button code example Example: jquery onclick function $( "#other" ).click(function() { $( "#target" ).click(); });