<!doctype html>
<html>
<head>
<script src="js/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<button>Button 1</button>
<button>Button 2</button>
<script>
$( "button:first" ).click(function() {
alert( "Button 1 Click" );
});
$( "button:last" ).click(function() {
$( "button:first" ).trigger( "click" );
});
</script></body>
</html>