JSFiddle - React, Tailwind, and code Playground
HTML
<input type="submit" name="savebutton" id="first" />
<a href="http://www.google.com/">
<input type="submit" name="savebutton" id="second" />
</a>
JavaScript
$(function(){
$('#first').click(function() {
alert('button clicked');
$("#second").trigger('click');
});
$("#second").click(function() {
alert('button 2 clicked!');
});
});