JSFiddle - React, Tailwind, and code Playground
HTML
<button id="disabled" style="color: graytext;"><i>disabled</i></button>
<button id="enabled"><i>enabled</i></button>
JavaScript
$("button#disabled, button#enabled").click(function(){
if($(this).attr('id') === 'disabled'){
alert('disabled');
// do your suff here disabled button
} else {
alert('enabled');
// do your suff here for enabled button
}
});