JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/blitzer/jquery-ui.css">
<a href='#' id='btn'>My Button</a>
<a href='#' id='btn2'>Re-enable</a>

JavaScript

$('#btn').button().click(function(){
    $(this).button('disable');
});

$('#btn2').button().click(function(){
    $('#btn').button("enable").trigger('mouseout');
});