JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" id="goRightBtn" value="bt1" />
<input type="button" id="secondBtn" value="bt2" />
JavaScript
$('#goRightBtn, #secondBtn').click(function() {
alert('test');
});
<input type="button" id="goRightBtn" value="bt1" />
<input type="button" id="secondBtn" value="bt2" />
$('#goRightBtn, #secondBtn').click(function() {
alert('test');
});