JSFiddle - React, Tailwind, and code Playground

by richardneililagan

HTML

<div id='main'>
    <button>Start Schedule</button>
</div>
<div></div>

JavaScript

jQuery(function($){
    
    // closure cache
    var closure;
    
    $('#main')
        .delegate('button:contains(Start)', 'click', function (e) {
            
            var _t = $(this);
            _t.text('Cancel Schedule');
            
        });
    
    
});