JSFiddle - React, Tailwind, and code Playground
HTML
<button id="balpha">button</button>
<input type="image">
JavaScript
$('#balpha, input[type=image]').click(function () {
alert('click');
});
<button id="balpha">button</button>
<input type="image">
$('#balpha, input[type=image]').click(function () {
alert('click');
});