JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" class="disabled" value="disabled click" />

<input type="button" value="click enabled!" />

CSS

.disabled
{
    background-color: #DDD;
    color: #999;
}

JavaScript

$('input').click(function (event) {
        if ($(this).hasClass('disabled')) {
            alert('CLICKED, BUT DISABLED!!');
        } else {
            alert('Not disabled. =)');
        }
    });