JSFiddle - React, Tailwind, and code Playground

by gRoberts

HTML

<button type="button">Click me</button>

JavaScript

$(document).ready(function()
{
    $(document).ajaxSuccess(function(event, req, options)
    {
        // handle the response
        alert('ajaxSuccess response');
    }); 
    $('button').click(function()
    {
        $.get('/echo/html/', function()
        {                                
            alert('click response');
        });
    });
});