JSFiddle - React, Tailwind, and code Playground
by cgack
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-darkness/jquery-ui.css">
<input id="test" type="button" value="Self-Disable"/><br/>
JavaScript
$(function() {
var tst = $('#test').button();
tst.hover( function() {
$(this).button( "disable" );
});
tst.trigger("mouseenter");
tst.trigger("mouseleave");
console.log(tst.is(".ui-state-hover"));
});