JSFiddle - React, Tailwind, and code Playground

by mayooresan

HTML

<a href="#" data-role="button" id="myButton" data-theme="e">Test</a>

JavaScript

$(document).on('pageshow',function(){
    $('#myButton').button('disable');   
    alert('test');
});