JSFiddle - React, Tailwind, and code Playground
by pcgupta17
HTML
<button id="refresh" onclick="alert('on Click');"> 2 Alerts</button>
<button id="refresh2" > 1 Alert </button>
JavaScript
$('#refresh').click(function () {
alert('Hi');
});
$('#refresh2').click(function () {
alert('Hi');
});